Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
atdb-ldv
Commits
0b9b3033
Commit
0b9b3033
authored
4 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
updating documentation
parent
052ed683
No related branches found
No related tags found
3 merge requests
!39
Dev nico
,
!17
pre-deploy to acceptance
,
!6
Dev nico
Pipeline
#9058
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-7
11 additions, 7 deletions
README.md
with
11 additions
and
7 deletions
README.md
+
11
−
7
View file @
0b9b3033
...
@@ -17,7 +17,8 @@ These diagrams roughly serves as the specifications for adapting ATDB for LDV.
...
@@ -17,7 +17,8 @@ These diagrams roughly serves as the specifications for adapting ATDB for LDV.
*
workflow: https://support.astron.nl/confluence/display/LDV/WORKFLOW
*
workflow: https://support.astron.nl/confluence/display/LDV/WORKFLOW
*
datamodel: https://dbdiagram.io/d/5ffc5fb180d742080a35d560
*
datamodel: https://dbdiagram.io/d/5ffc5fb180d742080a35d560
## Overview Diagrams
## Overview Diagrams (current implementation)
These diagrams show the current implementation and are kept up-to-date.
### Datamodel:
### Datamodel:
*
https://drive.google.com/file/d/1v5hMBQS0jT8DQJwySVISfRa1zF4o0fCQ/view?usp=sharing
*
https://drive.google.com/file/d/1v5hMBQS0jT8DQJwySVISfRa1zF4o0fCQ/view?usp=sharing
...
@@ -29,7 +30,7 @@ These diagrams roughly serves as the specifications for adapting ATDB for LDV.
...
@@ -29,7 +30,7 @@ These diagrams roughly serves as the specifications for adapting ATDB for LDV.


##
#
Test Environment on sdc-dev.astron.nl:
## Test Environment on sdc-dev.astron.nl:
### main GUI:
### main GUI:
*
https://sdc.astron.nl:5554/atdb/
*
https://sdc.astron.nl:5554/atdb/
...
@@ -43,29 +44,32 @@ serializers:
...
@@ -43,29 +44,32 @@ serializers:
*
tasks: http://sdc.astron.nl:5554/atdb/tasks/
*
tasks: http://sdc.astron.nl:5554/atdb/tasks/
get_size:
get_size:
Return the sum the sizes of all tasks with a given list of statusses
*
https://sdc.astron.nl:5554/atdb/tasks/get_size
*
https://sdc.astron.nl:5554/atdb/tasks/get_size
*
https://sdc.astron.nl:5554/atdb/tasks/get_size?status__in=staged,processing,processed,validating,validated,ingesting,removing,removed
*
https://sdc.astron.nl:5554/atdb/tasks/get_size?status__in=staged,processing,processed,validating,validated,ingesting,removing,removed
## Build & Deploy
### Deployment Diagram:
### Deployment Diagram:
*
https://drive.google.com/file/d/1_j9Fp505pZTxcmzAEdgftdPkoIFrKfAX/view?usp=sharing
*
https://drive.google.com/file/d/1_j9Fp505pZTxcmzAEdgftdPkoIFrKfAX/view?usp=sharing


## CI/CD (semi) automatic deploy in Docker
##
#
CI/CD (semi) automatic deploy in Docker
For the
`master`
branch there is a CI/CD pipeline in place which builds and deploys the backend at https://sdc.astron.nl:5554/atdb/
For the
`master`
branch there is a CI/CD pipeline in place which builds and deploys the backend at https://sdc.astron.nl:5554/atdb/
The deploy step requires pushing the 'play' button in the gitlab pipelines section.
The deploy step requires pushing the 'play' button in the gitlab pipelines section.
This is done to not have a mandatory deploy for every minor commmit.
This is done to not have a mandatory deploy for every minor commmit.
## Manual deploy in Docker (alternative to CI/CD)
##
#
Manual deploy in Docker (alternative to CI/CD)
### initial
###
#
initial
> cd ~/my_docker
> cd ~/my_docker
> cd atdb-ldv
> cd atdb-ldv
> git clone https://git.astron.nl/astron-sdc/atdb-ldv.git
> git clone https://git.astron.nl/astron-sdc/atdb-ldv.git
### update:
###
#
update:
> export DOCKER_BUILD_DIR=$HOME/my_docker/atdb-ldv/atdb-ldv/atdb
> export DOCKER_BUILD_DIR=$HOME/my_docker/atdb-ldv/atdb-ldv/atdb
> export DOCKER_COMPOSE_DIR=$DOCKER_BUILD_DIR/docker
> export DOCKER_COMPOSE_DIR=$DOCKER_BUILD_DIR/docker
...
@@ -75,7 +79,7 @@ This is done to not have a mandatory deploy for every minor commmit.
...
@@ -75,7 +79,7 @@ This is done to not have a mandatory deploy for every minor commmit.
> cd $DOCKER_COMPOSE_DIR
> cd $DOCKER_COMPOSE_DIR
> docker-compose -p atdb up -d
> docker-compose -p atdb up -d
### Database changes and migrations
###
#
Database changes and migrations
When the
`models.py`
is changed, then the database must be migrated.
When the
`models.py`
is changed, then the database must be migrated.
This is the procedure for that.
This is the procedure for that.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment