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

Update Dockerfile to run on binder. #165

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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
24 changes: 19 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ RUN apt-get install -y git \
python-cffi \
python-lxml \
python-pil \
python-numpy \
python-scipy \
python-pandas \
python-matplotlib \
python-seaborn \
python-concurrent.futures \
Expand Down Expand Up @@ -68,7 +66,23 @@ RUN . /root/.bashrc && pip2.7 install -U -r prerequirements.txt && \
jupyter serverextension enable --py geonotebook --sys-prefix && \
jupyter nbextension enable --py geonotebook --sys-prefix

VOLUME /notebooks
WORKDIR /notebooks

ENTRYPOINT ["/jupyter.sh"]
ENV NB_USER jovyan
ENV NB_UID 1000
ENV HOME /home/${NB_USER}

WORKDIR ${HOME}

RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}

# Make sure the contents of our repo are in ${HOME}
COPY . ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}


CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## GeoNotebook [![CircleCI](https://circleci.com/gh/OpenGeoscience/geonotebook.svg?style=shield)](https://circleci.com/gh/OpenGeoscience/geonotebook) [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/OpenGeoscience/geonotebook)
## GeoNotebook [![CircleCI](https://circleci.com/gh/OpenGeoscience/geonotebook.svg?style=shield)](https://circleci.com/gh/OpenGeoscience/geonotebook) [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/OpenGeoscience/geonotebook) [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/OpenGeoscience/geonotebook/master)
GeoNotebook is an application that provides client/server
environment with interactive visualization and analysis capabilities
using [Jupyter](http://jupyter.org), [GeoJS](http://www.github.com/OpenGeoscience/geojs) and other open source tools.
Expand Down
2 changes: 1 addition & 1 deletion notebooks/01_Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
},
"outputs": [],
"source": [
"!jupyter nbextension enable --py widgetsnbextension --sys-prefix"
"!jupyter nbextension enable --py widgetsnbextension"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ promise==0.4.2
Shapely==1.5.17
fiona==1.7.1
six==1.10.0
ipykernel==4.5.2
ipykernel
matplotlib
pyproj
pandas
Expand Down