Add notes on changing password when using OpenShift templates.

This commit is contained in:
Graham Dumpleton
2018-02-15 14:53:47 +11:00
parent 13be336fcd
commit fe4bf0d04c

View File

@@ -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
-----------------------------