Last active
November 27, 2018 19:10
-
-
Save taless474/1aa2cf67d828e6ecfb079bccfeaa459a to your computer and use it in GitHub Desktop.
Dockerfile for pyublas
This file contains hidden or 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
| # docker build -t bitahn90/pyublas:python2 -f py2.dockerfile . | |
| # docker push bitahn90/pyublas:python2 | |
| # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas:python2 | |
| 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 |
This file contains hidden or 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
| # docker build -t bitahn90/pyublas:python2 -f py2.dockerfile . | |
| # docker push bitahn90/pyublas:python2 | |
| # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas:python2 | |
| FROM debian | |
| RUN apt update && \ | |
| apt install -y libboost-all-dev python-dev python-setuptools python-pip && \ | |
| pip install numpy && \ | |
| 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='' |
This file contains hidden or 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
| # docker build -t bitahn90/pyublas:python3 -f py3.dockerfile . | |
| # docker push bitahn90/pyublas:python3 | |
| # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas:python3 | |
| FROM debian | |
| RUN apt update && \ | |
| apt install -y libboost-all-dev python3-dev python3-setuptools python3-pip && \ | |
| pip3 install numpy && \ | |
| 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='' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment