build-all: clean validate
	packer build ubuntu-1404.json

validate:
	packer validate ubuntu-1404.json

build-libvirt: clean validate
	packer build -only=libvirt ubuntu-1404.json
	./scripts/optimize_libvirt_box.sh

build-vmware: clean validate
	packer build -only=vmware ubuntu-1404.json

clean:
	rm -Rf output-*
	rm -Rf *.box
	rm -Rf packer_cache

uninstall:
	vagrant destroy
	vagrant box remove cilium-net-next
	sudo rm /var/lib/libvirt/images/cilium-net-next_vagrant_box_image_0.img
	-service libvirt-bin restart
	-service libvirtd restart
	rm Vagrantfile

upload:
	packer push -name noironetworks/cilium-net-next ubuntu-1404-atlas.json

install:
	vagrant box add --force cilium-net-next ubuntu-1404-libvirt.box
	cp Vagrantfile.sample  Vagrantfile
	vagrant up --provider=libvirt

build-all: clean validate
	packer build ubuntu-1404.json

validate:
	packer validate ubuntu-1404.json

build-libvirt: clean validate
	packer build -only=libvirt ubuntu-1404.json
	./scripts/optimize_libvirt_box.sh

build-vmware: clean validate
	packer build -only=vmware ubuntu-1404.json

clean:
	rm -Rf output-* *.box packer_cache tmp

uninstall:
	vagrant destroy
	vagrant box remove cilium-net-next
	sudo rm /var/lib/libvirt/images/cilium-net-next_vagrant_box_image_0.img
	-service libvirt-bin restart
	-service libvirtd restart
	rm Vagrantfile

upload:
	packer push -name noironetworks/cilium-net-next ubuntu-1404-atlas.json

install:
	vagrant box add --force cilium-net-next ubuntu-1404-libvirt.box
	cp Vagrantfile.sample  Vagrantfile
	vagrant up --provider=libvirt

Clean tmp temporary on make clean
Clean tmp temporary on make clean

Signed-off-by: Thomas Graf <5f50a84c1fa3bcff146405017f36aec1a10a9e38@cilium.io>
