Skip to content

Instantly share code, notes, and snippets.

@vizowl
Last active August 29, 2015 14:16
Show Gist options
  • Save vizowl/c22409e49a857a3f7a68 to your computer and use it in GitHub Desktop.
Save vizowl/c22409e49a857a3f7a68 to your computer and use it in GitHub Desktop.
Volume based makefile for docker control
all: run/* .datavol
docker run --rm --volumes-from=$$(cat .datavol) -w /work -v $$PWD/run:/work \
-v /output ipython/scipystack make $(MFLAGS)
docker cp $$(cat .datavol):/output/out.png .
.datavol:
docker run --cidfile=$@ -v /output debian
clean:
docker rm -f $$(cat .datavol)
rm -f .datavol out.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment