Skip to content

NaturalGIS/seis-lab-data

Repository files navigation

seis-lab-data

Marine data catalog for internal usage at IPMA

Development

  • Clone this repo

  • Ensure you have installed docker and uv on your machine

  • Create a Python virtualenv and install the project dependencies into it with:

    cd seis-lab-data
    uv sync --group dev --locked
  • Install the included pre-commit hooks:

    uv run pre-commit install
  • Setup your favorite IDE for working on the project

  • Launch the services with docker compose:

    docker compose -f docker/compose.dev.yaml up -d
  • You should now be able to access the webapp at

    http://localhost:8888

  • Additional relevant URLs:

Note

Building the docker image locally

Most of the time you will be using a prebuilt docker image. However, there is a special case where you will need to build it locally. This case is when you add a new python dependency to the project. In this case, build the image with:

docker build \
  --tag ghcr.io/naturalgis/seis-lab-data/seis-lab-data:$(git branch --show-current) \
  --file docker/Dockerfile \
  .

Then stand up the docker compose stack with:

CURRENT_GIT_BRANCH=$(git branch --show-current) docker compose -f docker/compose.dev.yaml up -d --force-recreate

Running tests

Normal tests can be run from inside the webapp compose container, after installing the required dependencies:

docker compose --file docker/compose.dev.yaml exec webapp uv sync --locked --group dev
docker compose --file docker/compose.dev.yaml exec webapp uv run pytest

End to end tests can be run with the end-to-end-tester compose service, by issuing a one-off run:

docker compose --file docker/compose.dev.yaml run --rm end-to-end-tester

About

SeisLabData platform for IPMA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •