Created
November 27, 2014 11:08
-
-
Save domitry/f134801dd2c09c3b4cee to your computer and use it in GitHub Desktop.
Dockerfile2
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
FROM ubuntu:14.04 | |
RUN apt-get update | |
RUN apt-get install -y g++ python-dev python-pip python-zmq libatlas-base-dev libzmq3-dev git curl | |
# ipython | |
RUN pip install ipython jinja2 tornado | |
# ruby | |
RUN apt-get install -y ruby2.0 ruby2.0-dev libssl-dev | |
RUN ln -sf /usr/bin/ruby2.0 /usr/bin/ruby #Ubuntu Bug #1310292 | |
RUN ln -sf /usr/bin/gem2.0 /usr/bin/gem | |
ENV CONFIGURE_OPTS --disable-install-doc | |
RUN echo 'gem: --no-rdoc --no-ri' >> .gemrc | |
# iruby | |
RUN bash -l -c 'gem install pry iruby' | |
# nmatrix | |
RUN bash -l -c 'gem install nmatrix -f -- --with-opt-include=/usr/include/atlas' | |
# and other gem | |
RUN bash -l -c 'gem install nyaplot mikon statsample' | |
# run iruby | |
RUN bash -l -c "cd /var/lib/gems/2.0*/gems/iruby*/lib/iruby/; sed 's/~\/.config\/iruby/\/tmp\/.config\/iruby/g' ./command.rb > ./tmp.rb; rm ./command.rb; mv ./tmp.rb ./command.rb" | |
RUN mkdir /tmp/.config | |
RUN mkdir /notebooks | |
EXPOSE 9999 | |
CMD bash -l -c "iruby notebook --no-browser --ip='*' --port 9999 --notebook-dir='/notebooks'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment