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
553b27f5
Commit
553b27f5
authored
4 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
adding to documentation
parent
aa2ffc88
No related branches found
No related tags found
No related merge requests found
Pipeline
#8598
passed
4 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+21
-7
21 additions, 7 deletions
README.md
atdb/taskdatabase/templates/taskdatabase/index.html
+1
-1
1 addition, 1 deletion
atdb/taskdatabase/templates/taskdatabase/index.html
with
22 additions
and
8 deletions
README.md
+
21
−
7
View file @
553b27f5
...
@@ -21,13 +21,13 @@ REST API
...
@@ -21,13 +21,13 @@ REST API
Confluence Page:
Confluence Page:
*
https://support.astron.nl/confluence/display/LDV/LOFAR+Data+Valorization+Home
*
https://support.astron.nl/confluence/display/LDV/LOFAR+Data+Valorization+Home
Workflow:
Specifications:
This diagram roughly serves as the specs for adapting ATDB for LDV.
These diagrams roughly serves as the specifications for adapting ATDB for LDV.
*
https://support.astron.nl/confluence/display/LDV/WORKFLOW
*
workflow: https://support.astron.nl/confluence/display/LDV/WORKFLOW
*
datamodel: https://dbdiagram.io/d/5ffc5fb180d742080a35d560
## Overview Diagrams (under construction)
## Overview Diagrams (under construction)
These diagrams are the core of the ATDB documentation.
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.
### Datamodel:
### Datamodel:
*
https://drive.google.com/file/d/1v5hMBQS0jT8DQJwySVISfRa1zF4o0fCQ/view?usp=sharing
*
https://drive.google.com/file/d/1v5hMBQS0jT8DQJwySVISfRa1zF4o0fCQ/view?usp=sharing
...
@@ -68,12 +68,26 @@ This is done to not have a mandatory deploy for every minor commmit.
...
@@ -68,12 +68,26 @@ 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 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 how to do that manually for a persistent database in a Docker container.
This is the procedure for that.
on local dev:
> python manage.py makemigrations --settings=atdb.settings.dev
> python manage.py migrate --settings=atdb.settings.dev
-
add new migration file to git
-
commit & push
on CI/CD page: https://git.astron.nl/astron-sdc/atdb-ldv/-/pipelines
- when automatic build is finished, push >> to deploy
on sdc machine:
> docker exec -it atdb-ldv python manage.py makemigrations --settings atdb.settings.docker_sdc
> 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
> docker exec -it atdb-ldv python manage.py migrate --settings atdb.settings.docker_sdc
## Postgres Database operations
## Postgres Database operations
...
...
This diff is collapsed.
Click to expand it.
atdb/taskdatabase/templates/taskdatabase/index.html
+
1
−
1
View file @
553b27f5
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
</div>
</div>
{% include 'taskdatabase/pagination.html' %}
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
<p
class=
"footer"
>
Version 1.0.0 (2
8
jan 2021 -
11
:00)
<p
class=
"footer"
>
Version 1.0.0 (2
9
jan 2021 -
08
:00)
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
(
function
(
seconds
)
{
(
function
(
seconds
)
{
var
refresh
,
var
refresh
,
...
...
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