You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.3 KiB

  1. .PHONY: info build shell py2 py3 test
  2. info:
  3. @echo ""
  4. @echo "Available Make Commands"
  5. @echo ""
  6. @echo "build: builds the image"
  7. @echo "py2: maps ~/Documents/nd2s to /var/nd2s and runs a Python 2.7 interpreter"
  8. @echo "py3: maps ~/Documents/nd2s to /var/nd2s and runs a Python 3.4 interpreter"
  9. @echo "test: runs all unit tests (in Python 3.4)"
  10. @echo ""
  11. build:
  12. docker build -t jimrybarski/nd2reader .
  13. shell:
  14. xhost local:root; docker run --rm -v ~/nd2s:/var/nd2s -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$(DISPLAY) -it jimrybarski/nd2reader bash
  15. py2:
  16. xhost local:root; docker run --rm -v ~/nd2s:/var/nd2s -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$(DISPLAY) -it jimrybarski/nd2reader python2.7
  17. py3:
  18. xhost local:root; docker run --rm -v ~/nd2s:/var/nd2s -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$(DISPLAY) -it jimrybarski/nd2reader python3.4
  19. test: build
  20. docker run --rm -it jimrybarski/nd2reader python3.4 /opt/nd2reader/tests.py
  21. docker run --rm -it jimrybarski/nd2reader python2.7 /opt/nd2reader/tests.py
  22. ftest: build
  23. docker run --rm -v ~/nd2s:/var/nd2s -it jimrybarski/nd2reader python3.4 /opt/nd2reader/ftests.py
  24. docker run --rm -v ~/nd2s:/var/nd2s -it jimrybarski/nd2reader python2.7 /opt/nd2reader/ftests.py
  25. publish:
  26. python setup.py sdist upload -r pypi