Skip to content

Instantly share code, notes, and snippets.

@dbiesecke
Created December 30, 2015 16:27
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbiesecke/c57874957bed9812c5f0 to your computer and use it in GitHub Desktop.
Save dbiesecke/c57874957bed9812c5f0 to your computer and use it in GitHub Desktop.
Jupyter with IPerl
# 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