Commit f560baad authored by Daniel Seybold's avatar Daniel Seybold

added script endpoint to docker container

parent 9b1891f4
Pipeline #19412 passed with stage
in 7 minutes and 32 seconds
......@@ -5,6 +5,4 @@ colosseumUri = http://$COLOSSEUM_URI:9000/api
userSpecFile = /opt/application-catalogue/input/users/users.yaml
appFolder = /opt/application-catalogue/input/applications/
#TODO: implement usage of the wildcard
scriptServiceEndpoint = https://omi-gitlab.e-technik.uni-ulm.de/dbms-jungle-explorer/dbms-catalogue-scripts/raw/master
\ No newline at end of file
scriptServiceEndpoint = $SCRIPT_DOWNLOAD_ENDPOINT
\ No newline at end of file
......@@ -4,7 +4,4 @@ userSpecFile = ./input/users/users.yaml
appFolder = ./input/applications/
colosseumUri = http://18.194.33.249:9000/api
#TODO: implement usage of the wildcard
scriptServiceWildcard = SCRIPT_SERVICE_ENDPOINT
\ No newline at end of file
scriptServiceEndpoint = https://omi-gitlab.e-technik.uni-ulm.de/dbms-jungle-explorer/dbms-catalogue-scripts/raw/master
\ No newline at end of file
......@@ -13,7 +13,7 @@ GLOBAL_VAR="xyz"
# validate if all container variables are set
##############################################################################
function validate(){
vars="COLOSSEUM_URI"
vars="COLOSSEUM_URI SCRIPT_DOWNLOAD_ENDPOINT"
for var in $vars; do
if [[ $(env | awk -F "=" '{print $1}' | grep "^$var$") != "$var" ]]; then
echo "$var not set but required."
......@@ -32,7 +32,8 @@ function validate(){
function writeConfigOptions(){
echo "write config options"
export COLOSSEUM_URI=$COLOSSEUM_URI
#cat /etc/docker-conf/configfile.conf.tmpl | envsubst > /etc/docker-conf/configfile.conf
export SCRIPT_DOWNLOAD_ENDPOINT=$SCRIPT_DOWNLOAD_ENDPOINT
cat /etc/docker-config/docker.properties | envsubst > /opt/application-catalogue/conf/docker.properties
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment