boxes: Add task for building a box for usage with acceptance specs
This commit is contained in:
parent
2e2c2fad56
commit
9849426078
1 changed files with 9 additions and 1 deletions
|
@ -25,7 +25,15 @@ $(DEBIAN_BOXES):
|
||||||
@sudo chmod +rw $(PACKAGE)
|
@sudo chmod +rw $(PACKAGE)
|
||||||
@sudo chown ${USER}: $(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:
|
clean:
|
||||||
@for r in $(ALL_BOXES); do \
|
@for r in $(ALL_BOXES); do \
|
||||||
sudo -E ./clean.sh $${r}\
|
sudo -E ./clean.sh $${r}\
|
||||||
|
|
Loading…
Reference in a new issue