#!/bin/bash
set -ex

cluster/vagrant/sync_config.sh

make all

for VM in `vagrant status | grep -v "^The Libvirt domain is running." | grep running | cut -d " " -f1`; do
  vagrant rsync $VM # if you do not use NFS
  vagrant ssh $VM -c "cd /vagrant && sudo hack/build-docker.sh"
done

export KUBECTL="cluster/kubectl.sh --core"

cluster/deploy.sh

#!/bin/bash
set -ex

cluster/vagrant/sync_config.sh

make all DOCKER_TAG=devel

for VM in `vagrant status | grep -v "^The Libvirt domain is running." | grep running | cut -d " " -f1`; do
  vagrant rsync $VM # if you do not use NFS
  vagrant ssh $VM -c "cd /vagrant && export DOCKER_TAG=devel && sudo -E hack/build-docker.sh"
done

export KUBECTL="cluster/kubectl.sh --core"

cluster/deploy.sh

Use docker tag "devel" for development
Use docker tag "devel" for development

Avoid collision with released "latest" containers in the docker registry
by using "devel" tag during development.
