Skip to content

Commit

Permalink
Place Jupyterhub configuration in a fixed known location
Browse files Browse the repository at this point in the history
Previously we relied on the config file being in the same working directory
as the Jupyterhub command was invoked from, which is brittle. This
places the config in a known location and explicitly passes the path
when starting Jupyterhub.
  • Loading branch information
Jerry Ding committed May 27, 2022
1 parent 3ea4f32 commit 6414b20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ RUN pip install /tmp/dataprocspawner/
COPY static/templates/ /etc/jupyterhub/templates/
COPY static/mdc/ /usr/local/share/jupyterhub/static/mdc/

COPY docker/jupyterhub_config.py .
COPY docker/jupyterhub_config.py /etc/jupyterhub/jupyterhub_config.py

EXPOSE 8080

Expand Down
2 changes: 1 addition & 1 deletion docker/jupyterhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,4 @@ function set-default-name-pattern() {
append-to-jupyterhub-config

# Starts JupyterHub.
jupyterhub
jupyterhub -f /etc/jupyterhub/jupyterhub_config.py

0 comments on commit 6414b20

Please sign in to comment.