Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
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
LOFAR2.0
tango
Commits
1d40991a
Commit
1d40991a
authored
1 year ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Plain Diff
Merge branch '
L2SS-966
-dump-config-db' into 'master'
L2SS-966
: dump configdb before updating Closes
L2SS-966
See merge request
!730
parents
9cbf8738
30a1aaf4
No related branches found
No related tags found
1 merge request
!730
L2SS-966: dump configdb before updating
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
sbin/update_ConfigDb.sh
+8
-0
8 additions, 0 deletions
sbin/update_ConfigDb.sh
with
10 additions
and
0 deletions
.gitignore
+
2
−
0
View file @
1d40991a
...
@@ -33,3 +33,5 @@ deploy/hosts
...
@@ -33,3 +33,5 @@ deploy/hosts
docker-compose/alerta-web/alerta-secrets.json
docker-compose/alerta-web/alerta-secrets.json
docker-compose/tmp
docker-compose/tmp
**/CDB/dump*.json
This diff is collapsed.
Click to expand it.
sbin/update_ConfigDb.sh
+
8
−
0
View file @
1d40991a
...
@@ -9,6 +9,14 @@ else
...
@@ -9,6 +9,14 @@ else
exit
1
exit
1
fi
fi
# dump a copy of the database before updating
# Do not change -i into -it this will break integration tests in gitlab ci!
docker
exec
-i
dsconfig bash
-c
'
python -m dsconfig.dump > /tmp/dsconfig-configdb-dump.json
/manage_object_properties.py -r > /tmp/dsconfig-objectdb-dump.json
/merge_json.py /tmp/dsconfig-objectdb-dump.json /tmp/dsconfig-configdb-dump.json'
\
>
"
${
LOFAR20_DIR
}
"
/CDB/dump_
"
$(
date
"+%Y.%m.%d_%H.%M.%S"
)
"
.json
# copy file into container to read it from container, as the file's location
# copy file into container to read it from container, as the file's location
# in the container won't be the same as on the host.
# in the container won't be the same as on the host.
docker
cp
"
${
file
}
"
dsconfig:/tmp/dsconfig-update-settings.json
||
exit
1
docker
cp
"
${
file
}
"
dsconfig:/tmp/dsconfig-update-settings.json
||
exit
1
...
...
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