Skip to content

Instantly share code, notes, and snippets.

@taless474
Last active November 27, 2018 19:10
Show Gist options
  • Save taless474/1aa2cf67d828e6ecfb079bccfeaa459a to your computer and use it in GitHub Desktop.
Save taless474/1aa2cf67d828e6ecfb079bccfeaa459a to your computer and use it in GitHub Desktop.
Dockerfile for pyublas
docker build -t bitahn90/pyublas:python2-silo -f py2.dockerfile .
docker push bitahn90/pyublas:python2-silo
docker build -t bitahn90/pyublas:python2 -f py2.dockerfile .
docker push bitahn90/pyublas:python2
docker build -t bitahn90/pyublas:python3 -f py3.dockerfile .
docker push bitahn90/pyublas:python3
FROM bitahn90/pyublas:python2
RUN apt update && \
apt install -y gfortran libsilo-dev zlib1g-dev && \
curl -JLO https://files.pythonhosted.org/packages/e5/6b/80f49e1eb35cab2c1236ec81d3782e54829bd52ac1862ef153be27ee5a77/pyvisfile-2016.1.tar.gz
tar xf pyvisfile-2016.1.tar.gz && \
pushd pyvisfile-2016.1 && \
./configure.py --use-silo && \
./setup.py install
FROM debian
RUN apt-get update && \
apt-get install -y libboost-all-dev python-dev python-setuptools python-pip vim curl wget && \
pip install numpy && \
pip install h5py && \
pip install sympy && \
pip install scipy && \
pip install pandas && \
pip install matplotlib && \
pip install pyublas && \
pip install jupyterlab && \
mkdir /work
WORKDIR /work
CMD /usr/local/bin/jupyter-lab --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''
FROM debian
RUN apt update && \
apt install -y libboost-all-dev python3-dev python3-setuptools python3-pip vim curl wget && \
pip3 install numpy && \
pip3 install h5py && \
pip3 install sympy && \
pip3 install scipy && \
pip3 install pandas && \
pip3 install matplotlib && \
pip3 install pyublas && \
pip3 install jupyterlab && \
mkdir /work
WORKDIR /work
CMD /usr/local/bin/jupyter-lab --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''
docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work bitahn90/pyublas:python2-silo
docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work bitahn90/pyublas:python2
docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work bitahn90/pyublas:python3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment