Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DataCatalog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
eFlows4HPC WP2
DataCatalog
Commits
ad57e494
Commit
ad57e494
authored
3 years ago
by
Christian Boettcher
Browse files
Options
Downloads
Patches
Plain Diff
set domain for certificate in CI/CD and deploy scripts
parent
6069fb75
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
deploy_scripts/cloudinit.yml
+2
-1
2 additions, 1 deletion
deploy_scripts/cloudinit.yml
deploy_scripts/deployment.sh
+3
-0
3 additions, 0 deletions
deploy_scripts/deployment.sh
with
5 additions
and
1 deletion
deploy_scripts/cloudinit.yml
+
2
−
1
View file @
ad57e494
...
...
@@ -51,5 +51,6 @@ runcmd:
-
'
git
clone
https://gitlab.jsc.fz-juelich.de/rybicki1/datacatalog.git
/home/apiserver/datacatalog'
-
docker network create net
# general startup takes long enough that no delay should bee needed - 5 to 6 minutes until these commands are executed
-
'
export
API_URL=https://zam10036.zam.kfa-juelich.de/'
-
'
export
API_URL=https://datacatalog.fz-juelich.de/'
-
'
export
SERVER_DOMAIN=datacatalog.fz-juelich.de'
-
/bin/bash /home/apiserver/datacatalog/deploy_scripts/deployment.sh /home/apiserver/datacatalog
\ No newline at end of file
This diff is collapsed.
Click to expand it.
deploy_scripts/deployment.sh
+
3
−
0
View file @
ad57e494
...
...
@@ -8,11 +8,14 @@ git pull --all
if
[
-z
"
$CHECKOUT_TAG
"
]
;
then
export
CHECKOUT_TAG
=
master
;
fi
git checkout
$CHECKOUT_TAG
if
[
-z
"
$API_URL
"
]
;
then
export
API_URL
=
https://datacatalog.fz-juelich.de/
;
fi
if
[
-z
"
$SERVER_DOMAIN
"
]
;
then
export
SERVER_DOMAIN
=
datacatalog.fz-juelich.de
;
fi
pip
install
-r
requirements.txt
python3 frontend/createStatic.py
-u
$API_URL
sed
-i
"s_datacatalog.fz-juelich.de_
${
SERVER_DOMAIN
}
_g"
docker-compose.yml
# it is at this point assumed that ip and volume are correctly assigned, and that dns is working properly
nohup
docker-compose up
>
/app/mnt/docker.log &
# or similar to capture docker log TODO
...
...
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