ATDB-LDV
Apertif Task Database for LOFAR Data Valorization
Test Environment:
Micro Services (in separate repo)
Confluence
Confluence Page:
Workflow: This diagram roughly serves as the specs for adapting ATDB for LDV.
Overview Diagrams (under construction)
These diagrams are the core of the ATDB documentation. Currently they are still mostly the original ATDB diagrams. They will be adapted and kept in sync once the ATDB-LDV structure solifies a bit more.
Context Diagram:
Datamodel:
Workflow/Status Diagram:
Deployment Diagram:
Manual deploy in Docker
For the `master' branch there is a CI/CD pipeline in place (with a manual deploy button on the 'pipelines' page)
initial
> cd ~/my_docker
> cd atdb-ldv
> git clone https://git.astron.nl/astron-sdc/atdb-ldv.git
update:
> export DOCKER_BUILD_DIR=$HOME/my_docker/atdb-ldv/atdb-ldv/atdb
> export DOCKER_COMPOSE_DIR=$DOCKER_BUILD_DIR/docker
> cd $DOCKER_BUILD_DIR
> git pull
> docker build -t atdb-ldv:latest .
> cd $DOCKER_COMPOSE_DIR
> docker-compose -p atdb up -d
Database migrations
When the models.py
is changed, then the database must be migrated.
This is how to do that manually for a persistent database in a Docker container.
> docker exec -it atdb-ldv python manage.py makemigrations --settings atdb.settings.docker_sdc
> docker exec -it atdb-ldv python manage.py migrate --settings atdb.settings.docker_sdc
Original ATDB diagrams
These diagrams can be used as guidance to the original ATDB services, which can be harvested for functionality