diff --git a/Dockerfile b/Dockerfile index a2533b1..666b27e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,8 @@ RUN mv ${HOME}/4q.ico ${HOME}/digits/digits/static/images/nvidia.ico # move the layout with fixed links RUN mv ${HOME}/layout.html ${HOME}/digits/digits/templates/layout.html WORKDIR ${HOME}/digits +RUN pip2 install opencv-python +RUN pip2 install tensorflow==1.2.1 RUN python setup.py install # install two plugins @@ -52,14 +54,23 @@ RUN python setup.py install WORKDIR ${HOME} # get some test data to play with RUN python -m digits.download_data cifar10 ~/cifar10 -RUN chown -R ${NB_USER} ${HOME} -WORKDIR ${HOME} +# download sunnybrook data +RUN mkdir ${HOME}/sunnybrook +WORKDIR ${HOME}/sunnybrook +RUN curl 'http://www.cardiacatlas.org/share/download.php?id=3&token=WgD8N1RrY2QvAL245wTPMCAeSAcRTjJG&download' -o dicoms.zip &&\ + unzip -q dicoms.zip && rm dicoms.zip +RUN curl 'http://www.cardiacatlas.org/share/download.php?id=2&token=IlxjOeV7ZviYLTqP627LmqqVHtyUuuK3&download' -o contours.zip &&\ + unzip -q contours.zip && rm contours.zip +# fix permissions and change user +RUN chown -R ${NB_USER} ${HOME} USER ${NB_USER} - +WORKDIR ${HOME} +# setup environment ENV DIGITS_JOBS_DIR=${HOME}/jobs ENV DIGITS_LOGFILE_FILENAME=${HOME}/digits.log ENV PYTHONPATH=/usr/local/python + ENTRYPOINT [""] CMD ["jupyter", "notebook", "--ip", "0.0.0.0"] diff --git a/README.md b/README.md index ee758a8..1f23ad7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Digits Docker in Binder using a Dockerfile -A simple repository to get [NVIDIA DIGITS](https://github.com/NVIDIA/DIGITS) running inside of Binder for easier experimentation and exploration. +A simple repository to get [NVIDIA DIGITS](https://github.com/NVIDIA/DIGITS) running inside of Binder for easier experimentation and exploration. Here we try the latest DIGITS image [](http://mybinder.org/v2/gh/4Quant/digits-docker-binder/master?urlpath=digits) diff --git a/layout.html b/layout.html index 8fd8da2..1694e2b 100644 --- a/layout.html +++ b/layout.html @@ -12,6 +12,9 @@