Commit 00014fbf authored by Daniel Webster's avatar Daniel Webster
Browse files

Add in custom token to both apps

h5nuvola2: ENV 'NOTEBOOK_TOKEN'
notebook:  ENV 'JUPYTER_NOTEBOOK_PASSWORD'
parent b9aee43e
Pipeline #644 failed with stages
in 17 seconds
...@@ -23,6 +23,8 @@ variables: ...@@ -23,6 +23,8 @@ variables:
GITREPO: https://gitlab.elettra.eu/andrea.lorenzon/h5nuvola2.git GITREPO: https://gitlab.elettra.eu/andrea.lorenzon/h5nuvola2.git
HOSTNAME: h5.apps.okd2.ceric.fedcloud.eu HOSTNAME: h5.apps.okd2.ceric.fedcloud.eu
IMAGE: $REGISTRY/$PROJECT/$APP IMAGE: $REGISTRY/$PROJECT/$APP
NOTEBOOK: notebook
NOTEBOOK_IMAGE: notebook
PVCNAME: h5-data PVCNAME: h5-data
PVSIZE: 5Gi PVSIZE: 5Gi
DATADIR: /opt/app-root/src/data DATADIR: /opt/app-root/src/data
...@@ -33,8 +35,10 @@ build-app: ...@@ -33,8 +35,10 @@ build-app:
script: script:
- oc login $OPENSHIFT --insecure-skip-tls-verify --token $ADMIN_TOKEN - oc login $OPENSHIFT --insecure-skip-tls-verify --token $ADMIN_TOKEN
- oc project $PROJECT - oc project $PROJECT
- oc delete all -lapp=${APP} --ignore-not-found=true - oc delete all -lapp=${APP} --ignore-not-found=true
- oc new-app --name $APP python~${GITREPO} --as-deployment-config=true - oc delete all -lapp=${NOTEBOOK} --ignore-not-found=true
- oc new-app --name $APP python~${GITREPO} --as-deployment-config=true -e NOTEBOOK_TOKEN=${NOTEBOOK_TOKEN}
- oc new-app --name $NOTEBOOK -i $NOTEBOOK_IMAGE --as-deployment-config=true -e JUPYTER_NOTEBOOK_PASSWORD=${NOTEBOOK_TOKEN}
- sleep 30 - sleep 30
deploy-app: deploy-app:
......
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