我正在尝试编写Dockerfile
来构建IPerl笔记本-可以从Jupyterhub产生。
我有许多可以正常工作的示例(python2,python3,Octave,Sage,MatLab,甚至是我必须将Jupyter的内容捣碎的LSST图像)-因此基础很好。
这是我必须去的地方
FROM jupyter/base-notebook
USER root
RUN apt-get update \
&& apt-get install -yq --no-install-recommends git less cpanminus less libzmq3-dev make gcc libc6-dev libnet-https-any-perl
RUN cpanm LWP LWP::Protocol::https Future
RUN lwp-request https://raw.githubusercontent.com/zmughal-p5CPAN/p5-Alt-Alien-ZMQ-Alien-ZMQ-latest/master/maint/install-zmq-libzmq.pl | perl - --notest Alt::Alien::ZMQ::Alien::ZMQ::latest ZMQ::LibZMQ3 Net::Async::ZMQ
RUN cpanm Devel::IPerl
ENTRYPOINT ["/usr/local/bin/iperl"]
CMD ["notebook"]
WORKDIR $HOME
USER $NB_USER
这可以作为独立的docker镜像†....正常工作,但是当我转移到集线器时会失败,并出现too many redirects
错误。
有人从Jupyterhub派生出IPerl笔记本吗?
[†]-请记住,您需要将use IPerl;
作为Perl代码的头几位:)