Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add env variable support for port options (#5221)
* Add env variable support for port options In order to better support use cases relating to containerized environments, this change adds environment variable support for the `--port` option. Since anyone setting a specific port probably doesn't want port retry logic enabled, the `--port-retries` option has also been backed by an env. Option `--port` will be backed by env `JUPYTER_PORT` and still defaults to `8888`. Option `--port-retries` will be backed by env `JUPYTER_PORT_RETRIES` and still defaults to `50`. The CLI options will override those set via the envrionment, but environment values override those set via configuration files. Closes #5212 * Fixup after merge
- Loading branch information
d2d50f1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit has been mentioned on Jupyter Community Forum. There might be relevant details there:
https://discourse.jupyter.org/t/change-port-from-8888-to-say-7777-in-jupyterlab-dockerfile/3621/4
d2d50f1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may also need to disable to update the Dockerfile "HEALTHCHECK"
or you will finds the container dying after around 46 seconds of run time!
jupyter/docker-stacks#1817
That environment variable is also overridden by a hardcoded port value in the config files
/etc/jupyter/
within the Dockerfiles.