Skip to content

Commit

Permalink
adding Dcokerfile for mybinder to work again
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinkunks committed Jan 23, 2017
1 parent f89585b commit 368cd45
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# For use in mybinder.org
FROM andrewosh/binder-base

MAINTAINER Agile Scientific <[email protected]>

USER root

USER main

# Copy from the Dockerfile generated by binder to create and activate the environment.
ADD environment.yml environment.yml
RUN conda env create -n binder
RUN echo "export PATH=/home/main/anaconda2/envs/binder/bin/:/home/main/anaconda3/envs/binder/bin/:$PATH" >> ~/.binder_start
RUN conda install -n binder jupyter
RUN /bin/bash -c "source activate binder && jupyter kernelspec install-self --user"

# To get around the new default authentication in Jupyter
RUN mkdir $HOME/.jupyter
RUN echo "c.NotebookApp.token = ''" >> $HOME/.jupyter/jupyter_notebook_config.py
RUN echo "c.NotebookApp.password=''" >> $HOME/.jupyter/jupyter_notebook_config.py
RUN echo "c.NotebookApp.password_required=False" >> $HOME/.jupyter/jupyter_notebook_config.py

0 comments on commit 368cd45

Please sign in to comment.