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

How to spawn from Jupyterhub? #96

Open
perllaghu opened this issue May 27, 2019 · 0 comments
Open

How to spawn from Jupyterhub? #96

perllaghu opened this issue May 27, 2019 · 0 comments

Comments

@perllaghu
Copy link

I'm trying to write a Dockerfile to build an image that will launch from a Jupyterhub Spawner.

I've a number of existing examples that work (python2, python3, Octave, Sage, MatLab, LSST, etc) - so the basics are fine.

Here's where I've got to:

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

This works fine as a stand-alone docker image†.... but fails with a too many redirects error when I transfer to a hub.

Has anyone got it working, spawned from Jupyterhub?

[†] - remember you need to have use IPerl; as one of the first bits of Perl code :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant