Browse Source

Merge pull request #76 from jimrybarski/73-new-dockerfile

73 new dockerfile
master
Jim Rybarski 9 years ago
parent
commit
356897bdda
2 changed files with 8 additions and 5 deletions
  1. +3
    -0
      Dockerfile
  2. +5
    -5
      Makefile

+ 3
- 0
Dockerfile View File

@ -24,6 +24,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libjpeg-dev \ libjpeg-dev \
pkg-config \ pkg-config \
python3-skimage \ python3-skimage \
tk \
tk-dev \
python3-tk \
&& pip3 install -U cython \ && pip3 install -U cython \
scikit-image \ scikit-image \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*


+ 5
- 5
Makefile View File

@ -5,8 +5,8 @@ info:
@echo "Available Make Commands" @echo "Available Make Commands"
@echo "" @echo ""
@echo "build: builds the image" @echo "build: builds the image"
@echo "py2: mounts ~/Documents/nd2s to /var/nd2s and runs a Python 2.7 interpreter"
@echo "py3: mounts ~/Documents/nd2s to /var/nd2s and runs a Python 3.4 interpreter"
@echo "py2: maps ~/Documents/nd2s to /var/nd2s and runs a Python 2.7 interpreter"
@echo "py3: maps ~/Documents/nd2s to /var/nd2s and runs a Python 3.4 interpreter"
@echo "test: runs all unit tests (in Python 3.4)" @echo "test: runs all unit tests (in Python 3.4)"
@echo "" @echo ""
@ -14,13 +14,13 @@ build:
docker build -t jimrybarski/nd2reader . docker build -t jimrybarski/nd2reader .
shell: shell:
docker run --rm -v ~/Documents/nd2s:/var/nd2s -it jimrybarski/nd2reader bash
xhost local:root; docker run --rm -v ~/Documents/nd2s:/var/nd2s -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$(DISPLAY) -it jimrybarski/nd2reader bash
py2: py2:
docker run --rm -v ~/Documents/nd2s:/var/nd2s -it jimrybarski/nd2reader python2.7
xhost local:root; docker run --rm -v ~/Documents/nd2s:/var/nd2s -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$(DISPLAY) -it jimrybarski/nd2reader python2.7
py3: py3:
docker run --rm -v ~/Documents/nd2s:/var/nd2s -it jimrybarski/nd2reader python3.4
xhost local:root; docker run --rm -v ~/Documents/nd2s:/var/nd2s -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$(DISPLAY) -it jimrybarski/nd2reader python3.4
test: build test: build
docker run --rm -it jimrybarski/nd2reader python3.4 /opt/nd2reader/tests.py docker run --rm -it jimrybarski/nd2reader python3.4 /opt/nd2reader/tests.py


Loading…
Cancel
Save