Created
December 30, 2015 16:27
-
-
Save dbiesecke/c57874957bed9812c5f0 to your computer and use it in GitHub Desktop.
Jupyter with IPerl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use offical jupyter image and added iperl | |
# docker run --rm -it -p 8000:8888 -v "$(pwd):/notebooks" nated/jupyter | |
FROM jupyter/notebook | |
MAINTAINER Daniel Biesecke <dbiesecke@gmail.com> | |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \ | |
libzmq3-dev libmagic-dev cpanminus | |
RUN git clone https://github.com/EntropyOrg/p5-Devel-IPerl.git /iperl | |
RUN cd /iperl/ && cpanm --installdeps . | |
RUN jupyter-kernelspec install /iperl | |
RUN mkdir -p -m 700 /root/.jupyter/ && \ | |
echo "c.NotebookApp.ip = '*'" >> /root/.jupyter/jupyter_notebook_config.py && \ | |
echo "c.MultiKernelManager.default_kernel_name = 'iperl'" | |
RUN rm -fR /root/.cpanm/work/* | |
RUN apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
apt-get purge -y --auto-remove \ | |
-o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $BUILD_DEPS | |
ENTRYPOINT ["/iperl/bin/iperl"] | |
CMD ["notebook"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment