|
@ -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 |
|
|