Skip to content

note about Dockerfile

Kozo Nishida edited this page Jun 14, 2016 · 4 revisions

Requirements

  • iruby requires Ruby version >= 2.1.0.
  • The Ruby version in Ubuntu:14.04 is 2.0.0

Works well

FROM ubuntu:15.10
RUN apt update; apt install -y git ruby gcc ruby-dev rake make wget python python-dev g++
RUN cd; git clone git://github.com/bioruby/bioruby; cd bioruby; gem build bioruby.gemspec; gem install ./bio-1.5.1.20160608.gem

# jupyter
RUN cd; wget https://bootstrap.pypa.io/get-pip.py; python get-pip.py; pip install jupyter
# iruby
RUN apt install -y libzmq3-dev libtool-bin autoconf; gem install rbczmq iruby pry

ADD . /usr/src/bioruby-notebook
EXPOSE 8888
CMD iruby notebook --no-browser --ip='*' --port 8888 --notebook-dir='/usr/src/bioruby-notebook'

Fails

kernel does NOT die, but Ruby does NOT work, this Ubuntu is xenial (==16.04)

FROM ubuntu
RUN apt update; apt install -y git ruby gcc ruby-dev rake make wget python python-dev g++
RUN cd; git clone git://github.com/bioruby/bioruby; cd bioruby; gem build bioruby.gemspec; gem install ./bio-1.5.1.20160608.gem

# jupyter
RUN cd; wget https://bootstrap.pypa.io/get-pip.py; python get-pip.py; pip install jupyter
# iruby
RUN apt install -y libzmq3-dev libtool-bin autoconf; gem install rbczmq iruby pry

ADD . /usr/src/bioruby-notebook
EXPOSE 8888
CMD iruby notebook --no-browser --ip='*' --port 8888 --notebook-dir='/usr/src/bioruby-notebook'
Clone this wiki locally