Skip to content
GitLab
Explore
Sign in
Register
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
a3033381
Commit
a3033381
authored
5 months ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
update script
parent
81e3c5fd
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+21
-9
21 additions, 9 deletions
README.md
atdb/taskdatabase/templates/taskdatabase/index.html
+1
-1
1 addition, 1 deletion
atdb/taskdatabase/templates/taskdatabase/index.html
deploy_atdb_local_prod.sh
+16
-0
16 additions, 0 deletions
deploy_atdb_local_prod.sh
with
38 additions
and
10 deletions
README.md
+
21
−
9
View file @
a3033381
...
...
@@ -80,15 +80,27 @@ On the host, this repo can then be cloned and pulled, and the image built and de
#### update:
> export DOCKER_BUILD_DIR=$HOME/my_docker/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 -f docker-compose-dev-pull-local.yml -p atdb up -d
or
> docker-compose -f docker-compose-production-pull-local.yml -p atdb up -d
This can be done with the
`deploy_atdb_local_dev.sh`
script.
````
commandline
#!/usr/bin/bash
export ATDB_DIR=$HOME/my_docker/atdb-ldv
while true; do
cd $ATDB_DIR
git pull
# Proceed with build and redeploy, this only does something when new changes were detected by the git pull
cd atdb
docker build -t atdb-ldv:latest .
docker-compose -f docker/docker-compose-dev-pull-local.yml -p atdb up -d
sleep 60 # Wait for 1 minute before the next iteration
done
````
#### Database changes and migrations
When the
`models.py`
is changed, then the database must be migrated.
...
...
This diff is collapsed.
Click to expand it.
atdb/taskdatabase/templates/taskdatabase/index.html
+
1
−
1
View file @
a3033381
...
...
@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
<p
class=
"footer"
>
Version 10 Dec 2024 - 15:
00
</p>
<p
class=
"footer"
>
Version 10 Dec 2024 - 15:
15
</p>
</div>
{% include 'taskdatabase/refresh.html' %}
...
...
This diff is collapsed.
Click to expand it.
deploy_atdb_local_prod.sh
0 → 100644
+
16
−
0
View file @
a3033381
#!/usr/bin/bash
export
ATDB_DIR
=
$HOME
/my_docker/atdb-ldv
while
true
;
do
cd
$ATDB_DIR
git pull
# Proceed with build and redeploy, this only does something when new changes were detected by the git pull
cd
atdb
docker build
-t
atdb-ldv:latest
.
docker-compose
-f
docker/docker-compose-production-pull-local.yml
-p
atdb up
-d
sleep
60
# Wait for 1 minute before the next iteration
done
\ No newline at end of file
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