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

Inheriting from these images #187

Closed
arokem opened this issue Feb 11, 2021 · 3 comments
Closed

Inheriting from these images #187

arokem opened this issue Feb 11, 2021 · 3 comments

Comments

@arokem
Copy link

arokem commented Feb 11, 2021

Hello! I am interested in setting up a daskhub (following these instruction). IIUC, to configure user environments for this case, I would have to inherit from one of the images provided here. My question is: there are some special considerations for how to do that? Even more specifically: if I wrote a Dockerfile that has:

FROM pangeo/pangeo-notebook:2021.02.07

At the top and then installed a bunch of my desired dependencies, could I build that with repo2docker? Because that would be nifty 😄

As always, thanks for leading the way here!

@scottyhq
Copy link
Member

scottyhq commented Feb 12, 2021

Hi @arokem ;)

I didn't realize the daskhub docs pointed to these images https://docs.dask.org/en/latest/setup/kubernetes-helm.html#matching-the-user-environment . @jacobtomlinson @TomAugspurger is there a dask image we can point to instead?

FROM pangeo/pangeo-notebook:2021.02.07

I don't think you want to do that because you'd get a bunch of geoscience-specific packages. But the base-image in this repository (FROM pangeo/base-image:2021.02.07) might be useful to you. If you want to go that route we either have this template repository https://github.com/pangeo-data/pangeo-binder-template, or if you can just directly modify our Dockerfile.

If you want to stick just with repo2docker for a single curated environment I recommend using https://github.com/jupyterhub/repo2docker-action. For daskhub in general I think the minimum requirement is the following libraries in your conda environment.yml:

- dask-gateway
- jupyterhub-singleuser
- ipywidgets

NOTE the version dask-gateway in your conda environment needs to match up with the chart version you are using (scroll to the bottom of this page: https://helm.dask.org). But currently, daskhub=4.5.7 --> dask-gateway=0.9 --> dask=2021)

@arokem
Copy link
Author

arokem commented Feb 12, 2021

Thanks @scottyhq ! Following your advice, I now have a repo that builds FROM pangeo/base-image:2021.02.07using pangrepo2docker/GHA (here: https://github.com/nrdg/autofq-daskhub).

Next, I need to figure out how to get this into the daskhub. But that might be something to follow up on the dask helmchart repo, which I am currently studying. To answer one of your questions, it seems to me that the dask documentation rightfully points to these images, because the base-image is the one that is used in the helm chart: https://github.com/dask/helm-chart/blob/main/daskhub/values.yaml#L55.

So, I think that I can close this issue, but feel free to reopen, if you think more discussion would be helpful.

@arokem arokem closed this as completed Feb 12, 2021
@jacobtomlinson
Copy link
Member

Raised dask/dask-docker#144

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

No branches or pull requests

3 participants