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.

Revisions

  1. taless474 revised this gist Nov 27, 2018. 9 changed files with 23 additions and 13 deletions.
    4 changes: 2 additions & 2 deletions build-py2-silo.bat
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    docker build -t prsam/pyublas:python2-silo -f py2.dockerfile .
    docker push prsam/pyublas:python2-silo
    docker build -t bitahn90/pyublas:python2-silo -f py2.dockerfile .
    docker push bitahn90/pyublas:python2-silo
    4 changes: 2 additions & 2 deletions build-py2.bat
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    docker build -t prsam/pyublas:python2 -f py2.dockerfile .
    docker push prsam/pyublas:python2
    docker build -t bitahn90/pyublas:python2 -f py2.dockerfile .
    docker push bitahn90/pyublas:python2
    4 changes: 2 additions & 2 deletions build-py3.bat
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    docker build -t prsam/pyublas:python3 -f py3.dockerfile .
    docker push prsam/pyublas:python3
    docker build -t bitahn90/pyublas:python3 -f py3.dockerfile .
    docker push bitahn90/pyublas:python3
    4 changes: 2 additions & 2 deletions py2-silo.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    FROM prsam/pyublas:python2
    FROM bitahn90/pyublas:python2

    RUN apt update && \
    apt install -y gfortran libsilo-dev zlib1g-dev curl && \
    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 && \
    7 changes: 6 additions & 1 deletion py2.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,13 @@
    FROM debian

    RUN apt-get update && \
    apt-get install -y libboost-all-dev python-dev python-setuptools python-pip && \
    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
    7 changes: 6 additions & 1 deletion py3.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,13 @@
    FROM debian

    RUN apt update && \
    apt install -y libboost-all-dev python3-dev python3-setuptools python3-pip && \
    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
    2 changes: 1 addition & 1 deletion start-py2-silo.bat
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work prsam/pyublas:python2-silo
    docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work bitahn90/pyublas:python2-silo
    2 changes: 1 addition & 1 deletion start-py2.bat
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work prsam/pyublas:python2
    docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work bitahn90/pyublas:python2
    2 changes: 1 addition & 1 deletion start-py3.bat
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work prsam/pyublas:python3
    docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work bitahn90/pyublas:python3
  2. @parsa parsa revised this gist Nov 27, 2018. 9 changed files with 16 additions and 19 deletions.
    2 changes: 2 additions & 0 deletions build-py2-silo.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    docker build -t prsam/pyublas:python2-silo -f py2.dockerfile .
    docker push prsam/pyublas:python2-silo
    2 changes: 2 additions & 0 deletions build-py2.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    docker build -t prsam/pyublas:python2 -f py2.dockerfile .
    docker push prsam/pyublas:python2
    2 changes: 2 additions & 0 deletions build-py3.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    docker build -t prsam/pyublas:python3 -f py3.dockerfile .
    docker push prsam/pyublas:python3
    10 changes: 3 additions & 7 deletions py2-silo.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,9 @@
    # docker build -t bitahn90/pyublas:python2-silo -f py2.dockerfile .
    # docker push bitahn90/pyublas:python2-silo
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas:python2-silo

    FROM bitahn90/pyublas:python2
    FROM prsam/pyublas:python2

    RUN apt update && \
    apt install -y gfortran libsilo-dev zlib1g-dev curl && \
    curl -JLO https://files.pythonhosted.org/packages/e5/6b/80f49e1eb35cab2c1236ec81d3782e54829bd52ac1862ef153be27ee5a77/pyvisfile-2016.1.tar.gz
    tar xf pyvisfile-2016.1.tar.gz && \
    tar xf pyvisfile-2016.1.tar.gz && \
    pushd pyvisfile-2016.1 && \
    ./configure.py --use-silo && \
    ./setup.py install
    ./setup.py install
    10 changes: 3 additions & 7 deletions py2.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,11 @@
    # 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 && \
    RUN apt-get update && \
    apt-get 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=''
    CMD /usr/local/bin/jupyter-lab --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''
    6 changes: 1 addition & 5 deletions py3.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,3 @@
    # 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 && \
    @@ -12,4 +8,4 @@ RUN apt update && \
    mkdir /work

    WORKDIR /work
    CMD /usr/local/bin/jupyter-lab --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''
    CMD /usr/local/bin/jupyter-lab --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''
    1 change: 1 addition & 0 deletions start-py2-silo.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work prsam/pyublas:python2-silo
    1 change: 1 addition & 0 deletions start-py2.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work prsam/pyublas:python2
    1 change: 1 addition & 0 deletions start-py3.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    docker run -p 8888:8888 -it --rm -v %USERPROFILE%\Downloads:/work prsam/pyublas:python3
  3. taless474 revised this gist Nov 26, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions py2-silo.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    # 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
    # docker build -t bitahn90/pyublas:python2-silo -f py2.dockerfile .
    # docker push bitahn90/pyublas:python2-silo
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas:python2-silo

    FROM bitahn90/pyublas:python2

    RUN apt update && \
    apt install -y gfortran libsilo-dev zlib1g-dev && \
    apt install -y gfortran libsilo-dev zlib1g-dev curl && \
    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 && \
  4. taless474 revised this gist Nov 26, 2018. 3 changed files with 23 additions and 10 deletions.
    13 changes: 13 additions & 0 deletions py2-silo.dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # 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
    10 changes: 5 additions & 5 deletions py2.dockerfile
    Original file line number Diff line number Diff line change
    @@ -5,11 +5,11 @@
    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
    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=''
    10 changes: 5 additions & 5 deletions py3.dockerfile
    Original file line number Diff line number Diff line change
    @@ -5,11 +5,11 @@
    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
    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=''
  5. taless474 revised this gist Nov 26, 2018. 2 changed files with 6 additions and 6 deletions.
    6 changes: 3 additions & 3 deletions py2.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # 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
    # 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

    6 changes: 3 additions & 3 deletions py3.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # 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
    # 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

  6. taless474 revised this gist Nov 26, 2018. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion py2.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # docker build -t bitahn90/pyublas:python3 -f py2.dockerfile .
    # 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

    2 changes: 1 addition & 1 deletion py3.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # docker build -t bitahn90/pyublas:python2 -f py3.dockerfile .
    # 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

  7. taless474 revised this gist Nov 26, 2018. 2 changed files with 6 additions and 6 deletions.
    6 changes: 3 additions & 3 deletions py2.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # docker build -t bitahn90/pyublas -f py2.dockerfile .
    # docker push bitahn90/pyublas
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas
    # docker build -t bitahn90/pyublas:python3 -f py2.dockerfile .
    # docker push bitahn90/pyublas:python3
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas:python3

    FROM debian

    6 changes: 3 additions & 3 deletions py3.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # docker build -t bitahn90/pyublas -f py3.dockerfile .
    # docker push bitahn90/pyublas
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas
    # docker build -t bitahn90/pyublas:python2 -f py3.dockerfile .
    # docker push bitahn90/pyublas:python2
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas:python2

    FROM debian

  8. taless474 revised this gist Nov 26, 2018. 2 changed files with 16 additions and 1 deletion.
    15 changes: 15 additions & 0 deletions py2.dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # docker build -t bitahn90/pyublas -f py2.dockerfile .
    # docker push bitahn90/pyublas
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas

    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=''
    2 changes: 1 addition & 1 deletion Dockerfile → py3.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # docker build -t bitahn90/pyublas .
    # docker build -t bitahn90/pyublas -f py3.dockerfile .
    # docker push bitahn90/pyublas
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas

  9. taless474 renamed this gist Nov 26, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions pyublas.dockerfile → Dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # docker build -t bitahn90/pyublas -f pyublas.dockerfile .
    # docker build -t bitahn90/pyublas .
    # docker push bitahn90/pyublas
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/home/jovyan/work bitahn90/pyublas
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/work bitahn90/pyublas

    FROM debian

    @@ -12,4 +12,4 @@ RUN apt update && \
    mkdir /work

    WORKDIR /work
    CMD /usr/local/bin/jupyter-lab --ip=0.0.0.0 --no-browser --allow-root
    CMD /usr/local/bin/jupyter-lab --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password=''
  10. taless474 revised this gist Nov 26, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions pyublas.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # docker build -t bitahn90/pyublas -f pyublas.dockerfile .
    # docker push bitahn90/pyublas
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/home/jovyan/work bitahn90/pyublas

    FROM debian
  11. taless474 revised this gist Nov 26, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions pyublas.dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/home/jovyan/work bitahn
    90/pyublas
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/home/jovyan/work bitahn90/pyublas

    FROM debian

    RUN apt update && \
  12. taless474 created this gist Nov 26, 2018.
    13 changes: 13 additions & 0 deletions pyublas.dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # docker run -p 8888:8888 -it --rm -v C:\Users\Bita\Downloads:/home/jovyan/work bitahn
    90/pyublas
    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