Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate with jupyterhub launcher #189

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

holdenk
Copy link
Contributor

@holdenk holdenk commented Sep 22, 2021

This allows the container to be used from the zero-to-jupyterhub launcher (aka kubespawner).

@holdenk
Copy link
Contributor Author

holdenk commented Sep 24, 2021

cc @jacobtomlinson ?

Copy link
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very keen to support this use case.

I saw you included this in your Arm PR and I took it out again because we were no longer able to just run the container and have Jupyter Lab start. I wasn't sure what removing start.sh jupyter lab was trying to achieve there. But I see now.

We need to ensure that a simple command like this works.

$ docker run --rm -it daskdev/dask-notebook:latest

To achieve this I think we need to update the start command in the Dockerfile and possibly check the order of the exec args.

# Execute the jupyterlab as specified.
exec start.sh jupyter lab ${JUPYTERLAB_ARGS}
# Execute the jupyterlab as specified from either JUPYTERLAB_ARGS or command line args.
exec ${JUPYTERLAB_ARGS} "$@"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be

Suggested change
exec ${JUPYTERLAB_ARGS} "$@"
exec "$@ ${JUPYTERLAB_ARGS}"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also wonder if we should rename it to EXTRA_JUPYTERLAB_ARGS to make it clear what it is. This isn't really and either or situation, the command should always be passed via the $@.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra works too :)

@holdenk
Copy link
Contributor Author

holdenk commented Sep 24, 2021

Ah so I just modified the docker compose so it would pass arguments, but yeah I can change this have a default no args too 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants