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.

27 lines
766 B

  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: mounts ~/Documents/nd2s to /var/nd2s and runs a Python 2.7 interpreter"
  8. @echo "py3: mounts ~/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. docker run --rm -v ~/Documents/nd2s:/var/nd2s -it jimrybarski/nd2reader bash
  15. py2:
  16. docker run --rm -v ~/Documents/nd2s:/var/nd2s -it jimrybarski/nd2reader python2.7
  17. py3:
  18. docker run --rm -v ~/Documents/nd2s:/var/nd2s -it jimrybarski/nd2reader python3.4
  19. test: build
  20. docker run --rm -it jimrybarski/nd2reader python3.4 /opt/nd2reader/tests.py