From fe4bf0d04c8b8274d065c810c99f7b9357a8f6bc Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Thu, 15 Feb 2018 14:53:47 +1100 Subject: [PATCH] Add notes on changing password when using OpenShift templates. --- examples/openshift/README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/examples/openshift/README.md b/examples/openshift/README.md index 59ba2834..c2fd5357 100644 --- a/examples/openshift/README.md +++ b/examples/openshift/README.md @@ -191,6 +191,29 @@ Start up the notebook again. oc scale dc/mynotebook --replicas 1 ``` +Changing the Notebook Password +------------------------------ + +The password for the notebook is supplied as a template parameter, or if not supplied will be automatically generated by the template. It will be passed into the container through an environment variable. + +If you want to change the password, you can do so by editing the environment variable on the deployment configuration. + +``` +oc set env dc/mynotebook JUPYTER_NOTEBOOK_PASSWORD=mypassword +``` + +This will trigger a new deployment so ensure you have downloaded any work if not using a persistent volume. + +If using a persistent volume, you could instead setup a password in the file: + +``` +/home/jovyan/work/.jupyter/jupyter_notebook_config.py +``` + +as per guidelines in: + +* https://jupyter-notebook.readthedocs.io/en/stable/public_server.html + Deploying from a Custom Image -----------------------------