Skip to content
Snippets Groups Projects
Commit ad57e494 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

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
......@@ -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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment