From 9849426078fd8b33c9f20c1d5950f807d5f78b9a Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 21 Mar 2014 17:47:32 -0300 Subject: [PATCH] boxes: Add task for building a box for usage with acceptance specs --- boxes/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/boxes/Makefile b/boxes/Makefile index 0e66145..5bc16c9 100644 --- a/boxes/Makefile +++ b/boxes/Makefile @@ -25,7 +25,15 @@ $(DEBIAN_BOXES): @sudo chmod +rw $(PACKAGE) @sudo chown ${USER}: $(PACKAGE) -clean: ALL_BOXES = ${DEBIAN_BOXES} ${UBUNTU_BOXES} +acceptance: CONTAINER = "vagrant-base-acceptance-amd64" +acceptance: PACKAGE = "output/${TODAY}/vagrant-lxc-acceptance-amd64.box" +acceptance: + @mkdir -p $$(dirname $(PACKAGE)) + @PUPPET=1 CHEF=1 sudo -E ./mk-debian.sh ubuntu precise amd64 $(CONTAINER) $(PACKAGE) + @sudo chmod +rw $(PACKAGE) + @sudo chown ${USER}: $(PACKAGE) + +clean: ALL_BOXES = ${DEBIAN_BOXES} ${UBUNTU_BOXES} acceptance clean: @for r in $(ALL_BOXES); do \ sudo -E ./clean.sh $${r}\