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
e57c1e83
Commit
e57c1e83
authored
4 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
add documentation
parent
6cb51d41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+23
-2
23 additions, 2 deletions
README.md
atdb/atdb/settings/dev.py
+2
-1
2 additions, 1 deletion
atdb/atdb/settings/dev.py
with
25 additions
and
3 deletions
README.md
+
23
−
2
View file @
e57c1e83
...
...
@@ -2,11 +2,21 @@
### Apertif Task Database for LOFAR Data Valorization
Test Environment:
*
https://sdc.astron.nl:5554/atdb/
*
https://sdc.astron.nl:5554/atdb/admin/
### Confluence
Confluence Page:
*
https://support.astron.nl/confluence/display/LDV/LOFAR+Data+Valorization+Home
#### Diagrams (under construction)
These are still mostly the original ATDB diagrams. They will be adapted and kept in sync once the ATDB-LDV structure solifies a bit more.
Workflow:
This diagram roughly serves as the specs for adapting ATDB for LDV.
*
https://support.astron.nl/confluence/display/LDV/WORKFLOW
#### 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:
*
https://drive.google.com/file/d/1ltmzFMgOI24kIgPtaKrYl-j__ATOI3m6/view?usp=sharing
...
...
@@ -21,12 +31,23 @@ Deployment Diagram:
*
https://drive.google.com/file/d/1_j9Fp505pZTxcmzAEdgftdPkoIFrKfAX/view?usp=sharing
### Manual deploy in Docker
#### 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_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
...
...
This diff is collapsed.
Click to expand it.
atdb/atdb/settings/dev.py
+
2
−
1
View file @
e57c1e83
...
...
@@ -39,7 +39,8 @@ DATABASES = {
# database runs locally in postgres
# 'NAME': 'atdb_trunk',
'
NAME
'
:
'
atdb_04oct2019
'
,
#'NAME': 'atdb_04oct2019',
'
NAME
'
:
'
atdb_ldv
'
,
'
HOST
'
:
'
localhost
'
,
'
PORT
'
:
''
,
...
...
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