Skip to content

Instantly share code, notes, and snippets.

@vizowl
Last active August 29, 2015 14:16
Show Gist options
  • Save vizowl/f9ec68e8562d5c7a5898 to your computer and use it in GitHub Desktop.
Save vizowl/f9ec68e8562d5c7a5898 to your computer and use it in GitHub Desktop.
Makefiles for both inside and outside docker
NAME := $(shell uuidgen -r)
out.png: run/*
docker run --name $(NAME) -w /work -v $$PWD:/work -v /output \
ipython/scipystack python make $(MFLAGS)
docker cp $(NAME):/output/out.png .
docker rm $(NAME)
/output/out.png: histogram.py image.jpg
python histogram.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment