Skip to content

Instantly share code, notes, and snippets.

@sergiobuj
Created February 18, 2016 08:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiobuj/ebf0a95ab96480dbc75f to your computer and use it in GitHub Desktop.
Save sergiobuj/ebf0a95ab96480dbc75f to your computer and use it in GitHub Desktop.
cl-jupyter on docker with sbcl 1.3.2
FROM buildpack-deps:jessie
RUN apt-get update -qq && apt-get install -y bzip2 wget build-essential python3-dev python3-pip unzip libzmq3-dev
RUN wget -nv http://downloads.sourceforge.net/project/sbcl/sbcl/1.3.2/sbcl-1.3.2-x86-64-linux-binary.tar.bz2
RUN wget -nv https://beta.quicklisp.org/quicklisp.lisp
RUN wget -nv https://github.com/fredokun/cl-jupyter/archive/master.zip
RUN bzip2 -cd sbcl-1.3.2-x86-64-linux-binary.tar.bz2 | tar xvf -
RUN unzip master.zip
RUN cd sbcl-1.3.2-x86-64-linux && sh install.sh
RUN pip3 install jupyter
RUN sbcl --load quicklisp.lisp --non-interactive --eval "(quicklisp-quickstart:install)"
RUN echo '#-quicklisp' >> /root/.sbclrc
RUN echo '(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"' >> /root/.sbclrc
RUN echo ' (user-homedir-pathname))))' >> /root/.sbclrc
RUN echo ' (when (probe-file quicklisp-init)' >> /root/.sbclrc
RUN echo ' (load quicklisp-init)))' >> /root/.sbclrc
RUN echo '(push #p"/workspace/" asdf:*central-registry*)' >> /root/.sbclrc
RUN python3 ./cl-jupyter-master/install-cl-jupyter.py
RUN sbcl --load ./cl-jupyter-master/cl-jupyter.lisp --non-interactive
WORKDIR /notebooks
CMD ["jupyter", "notebook", "--ip=0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment