-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
22 lines (18 loc) · 1.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:stretch
MAINTAINER Björn Dahlgren <bjodah@gmail.com>
ENV LANG C.UTF-8
# This dockerfile is designed to run on binder (mybinder.org)
RUN apt-get update && \
apt-get --quiet --assume-yes install curl git g++-6 libgmp-dev binutils-dev bzip2 make cmake sudo \
python-dev python-pip libgsl-dev liblapack-dev libsuitesparse-dev && \
apt-get clean && \
curl -LOs http://computation.llnl.gov/projects/sundials/download/sundials-2.7.0.tar.gz && \
tar xzf sundials-2.7.0.tar.gz && mkdir build/ && cd build/ && \
cmake -DCMAKE_PREFIX_PATH=/usr/local -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -DEXAMPLES_ENABLE=OFF -DEXAMPLES_INSTALL=OFF -DLAPACK_ENABLE=ON \
../sundials*/ && make install && cd - && rm -r build/ sundials* && \
python -m pip install --upgrade pip && \
curl -LOs http://dl.bintray.com/boostorg/release/1.65.0/source/boost_1_65_0.tar.bz2 && \
tar xjf boost_*.tar.bz2 && cd boost* && ./bootstrap.sh && ./b2 -j 2 --prefix=/usr/local/ install && cd -
# At this point the system should be able to pip-install pyodesys and all of its dependencies. We'll do so
# when running the image using the ``host-jupyter-using-docker.sh`` script. Installed packages are cached.