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

[WIP] Fix binder #32

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 24 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
FROM andrewosh/binder-base

MAINTAINER Kozo Nishida <[email protected]>
FROM jupyter/base-notebook:latest

USER root

# Add ecell4 dependencies
RUN apt-get update
RUN apt-get install -y build-essential ruby ruby-dev libzmq3 libzmq3-dev gnuplot-nox libgsl0-dev libtool autoconf automake zlib1g-dev libsqlite3-dev libmagick++-dev imagemagick libatlas-base-dev && apt-get clean
RUN ln -s /usr/bin/libtoolize /usr/bin/libtool # See https://github.com/zeromq/libzmq/issues/1385
RUN apt-get update && \
apt-get install -y build-essential \
ruby2.5 ruby2.5-dev libzmq3-dev gnuplot-nox libgsl-dev libtool autoconf make \
automake zlib1g-dev libsqlite3-dev libmagick++-dev imagemagick \
libatlas-base-dev g++ libczmq-dev libffi-dev libtool-bin cmake git && \
apt-get gnuplot-x11 clean

# See https://github.com/methodmissing/rbczmq/issues/64
RUN CPPFLAGS='-Wno-error=deprecated-declarations' gem install rbczmq -v '1.7.9'
RUN gem install nmatrix daru cztop iruby gnuplotrb gruff
RUN gem install specific_install
RUN gem specific_install https://github.com/SciRuby/daru.git
RUN gem install nyaplot
# RUN ls && ls && gem specific_install https://github.com/lokeshh/sciruby.git master

RUN gem install narray nmatrix gsl
RUN gem specific_install https://github.com/lokeshh/statsample-glm.git upgrade_daru
# RUN gem update --no-document --system && gem install --no-document sciruby-full

USER $NB_UID

RUN gem update --no-document --system && gem install --no-document sciruby-full
RUN iruby register --force

USER main
COPY . .

RUN iruby register
ENTRYPOINT jupyter-notebook