Commit 80ac628c606fa0c296e740fb5d47e57cd301e23b

Authored by Antonio Terceiro
1 parent f4891287

some test infrastructure

utils/centos6-vagrant-lxc/Makefile
@@ -2,6 +2,8 @@ BOX = centos6 @@ -2,6 +2,8 @@ BOX = centos6
2 TEMPLATE_ARGS = -t centos -- --release 6.5 2 TEMPLATE_ARGS = -t centos -- --release 6.5
3 LXC_PATH := $(shell sudo lxc-config lxc.lxcpath) 3 LXC_PATH := $(shell sudo lxc-config lxc.lxcpath)
4 4
  5 +all: $(BOX).box
  6 +
5 $(BOX).box: metadata.json lxc.conf lxc-template rootfs.tar.gz 7 $(BOX).box: metadata.json lxc.conf lxc-template rootfs.tar.gz
6 $(RM) $@ 8 $(RM) $@
7 tar czf $@ $^ 9 tar czf $@ $^
@@ -30,7 +32,7 @@ metadata.json: metadata.json.in @@ -30,7 +32,7 @@ metadata.json: metadata.json.in
30 ./metadata.json.in > $@ 32 ./metadata.json.in > $@
31 33
32 uninstall: 34 uninstall:
33 - vagrant box remove $(BOX) 35 + vagrant box remove $(BOX) || true
34 36
35 install: $(BOX).box 37 install: $(BOX).box
36 vagrant box add $(BOX) $^ 38 vagrant box add $(BOX) $^
@@ -45,3 +47,6 @@ fullclean: clean @@ -45,3 +47,6 @@ fullclean: clean
45 $(RM) lxc.conf 47 $(RM) lxc.conf
46 $(RM) metadata.json 48 $(RM) metadata.json
47 sudo lxc-destroy -n $(BOX)-base 49 sudo lxc-destroy -n $(BOX)-base
  50 +
  51 +retry: clean uninstall all install
  52 + vagrant up
utils/centos6-vagrant-lxc/Vagrantfile 0 → 100644
@@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
  1 +# -*- mode: ruby -*-
  2 +# vi: set ft=ruby :
  3 +
  4 +# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
  5 +VAGRANTFILE_API_VERSION = "2"
  6 +
  7 +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  8 + config.vm.box = "centos6"
  9 +end