Commit 80ac628c606fa0c296e740fb5d47e57cd301e23b
1 parent
f4891287
Exists in
master
and in
90 other branches
some test infrastructure
Showing
2 changed files
with
15 additions
and
1 deletions
Show diff stats
utils/centos6-vagrant-lxc/Makefile
... | ... | @@ -2,6 +2,8 @@ BOX = centos6 |
2 | 2 | TEMPLATE_ARGS = -t centos -- --release 6.5 |
3 | 3 | LXC_PATH := $(shell sudo lxc-config lxc.lxcpath) |
4 | 4 | |
5 | +all: $(BOX).box | |
6 | + | |
5 | 7 | $(BOX).box: metadata.json lxc.conf lxc-template rootfs.tar.gz |
6 | 8 | $(RM) $@ |
7 | 9 | tar czf $@ $^ |
... | ... | @@ -30,7 +32,7 @@ metadata.json: metadata.json.in |
30 | 32 | ./metadata.json.in > $@ |
31 | 33 | |
32 | 34 | uninstall: |
33 | - vagrant box remove $(BOX) | |
35 | + vagrant box remove $(BOX) || true | |
34 | 36 | |
35 | 37 | install: $(BOX).box |
36 | 38 | vagrant box add $(BOX) $^ |
... | ... | @@ -45,3 +47,6 @@ fullclean: clean |
45 | 47 | $(RM) lxc.conf |
46 | 48 | $(RM) metadata.json |
47 | 49 | sudo lxc-destroy -n $(BOX)-base |
50 | + | |
51 | +retry: clean uninstall all install | |
52 | + vagrant up | ... | ... |