aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2017-06-16 14:12:17 -0600
committerkballou <kballou@devnulllabs.io>2017-06-16 14:12:17 -0600
commit284229d6b9ffd296fc2008bf938b2684ff089d4e (patch)
treec9cbcc40e0d03574b8bf4aca9910d4b4c7461e53
parent1b0aba3b7c04906356a22f38f7dcbe3bb2ffc114 (diff)
downloaddocker-erlang-wip.tar.gz
docker-erlang-wip.tar.xz
WIP: add rule for building (all) images locallywip
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c307f2d..8731626 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+IMAGE_NAME:=kennyballou/docker-erlang
DOCKERFILES_SRC:=template/Dockerfile
DOCKERFILES:= \
@@ -20,6 +21,13 @@ all: ${DOCKERFILES}
$(DOCKERFILES): template/Dockerfile 18/options 19/options
bash template/generate.sh $(shell echo $@ | cut -d '/' -f1)/options $< > $@
+define build_image =
+$(1):
+ docker build -t $(IMAGE_NAME):$$(@D) $$(@D)
+endef
+
+#$(foreach dockerfile,$(DOCKERFILES),$(eval $(call build_image,$(dockerfile))))
+
.PHONY: clean
clean:
-rm $(DOCKERFILES)