Skip to content

Docker bug fix #194

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

Merged
merged 4 commits into from
Nov 6, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,20 @@ RUN apt-get update && apt-get install -y graphviz
USER jovyan

RUN git clone https://github.com/dask/dask-tutorial.git ./dask-tutorial
RUN cd dask-tutorial && conda env update -f binder/environment.yml && . binder/postBuild && cd ..
RUN cd dask-tutorial && conda env update -f binder/environment.yml && cd ..
RUN rm dask-tutorial/github_deploy_key_dask_dask_tutorial.enc

# The notebooks are configured to use kernel python3
# We want them to use the kernel dask-tutorial
# So we switch kernels

SHELL ["conda","run","-n","dask-tutorial","/bin/bash","-c"]
RUN . dask-tutorial/binder/postBuild
RUN jupyter kernelspec remove -f python3
RUN python -m ipykernel install --user --name python3 --display-name "Python 3"

# Shell into the container takes us to the correct environment

RUN conda init
RUN echo "conda activate dask-tutorial" >> ~/.bashrc