Last active
August 29, 2015 14:16
-
-
Save vizowl/c22409e49a857a3f7a68 to your computer and use it in GitHub Desktop.
Volume based makefile for docker control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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