Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrea Lorenzon
H5nuvola2
Commits
00014fbf
Commit
00014fbf
authored
Oct 01, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
00014fbf
...
...
@@ -23,6 +23,8 @@ variables:
GITREPO
:
https://gitlab.elettra.eu/andrea.lorenzon/h5nuvola2.git
HOSTNAME
:
h5.apps.okd2.ceric.fedcloud.eu
IMAGE
:
$REGISTRY/$PROJECT/$APP
NOTEBOOK
:
notebook
NOTEBOOK_IMAGE
:
notebook
PVCNAME
:
h5-data
PVSIZE
:
5Gi
DATADIR
:
/opt/app-root/src/data
...
...
@@ -33,8 +35,10 @@ build-app:
script
:
-
oc login $OPENSHIFT --insecure-skip-tls-verify --token $ADMIN_TOKEN
-
oc project $PROJECT
-
oc delete all -lapp=${APP} --ignore-not-found=true
-
oc new-app --name $APP python~${GITREPO} --as-deployment-config=true
-
oc delete all -lapp=${APP} --ignore-not-found=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
deploy-app
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment