Skip to content

Commit

Permalink
Add: weave
Browse files Browse the repository at this point in the history
  • Loading branch information
William-Yeh committed Jan 7, 2015
1 parent f54ea58 commit 69259e9
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Use the following public box names (all available from [Vagrant Cloud](https://v

- [dockerize](https://github.com/jwilder/dockerize)

- [weave](https://github.com/zettio/weave)

- [Docker Registry](https://github.com/docker/docker-registry) (only provided in [`williamyeh/insecure-registry`](https://vagrantcloud.com/williamyeh/insecure-registry) box)

- [Kubernetes](https://github.com/GoogleCloudPlatform/kubernetes) (only provided in [`williamyeh/ubuntu-trusty64-kubernetes`](https://vagrantcloud.com/williamyeh/ubuntu-trusty64-kubernetes) box)
Expand Down
11 changes: 11 additions & 0 deletions debian-jessie/vagrant-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ sudo mv dockerize /usr/local/bin
rm *.tar.gz


# install weave
# @see https://github.com/zettio/weave
curl -o weave -L https://github.com/zettio/weave/releases/download/latest_release/weave
sudo chmod a+x weave
sudo chown root weave
sudo chgrp root weave
sudo mv weave /usr/local/bin
# preload images
sudo weave setup


# clean up
sudo docker rm `sudo docker ps --no-trunc -a -q`
sudo docker rmi busybox
Expand Down
1 change: 0 additions & 1 deletion insecure-registry/vagrant-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ EOF_INIT


# clean up
sudo apt-get autoremove -y chef puppet
sudo apt-get clean
sudo rm -f \
/var/log/messages \
Expand Down
18 changes: 17 additions & 1 deletion ubuntu-trusty/vagrant-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,25 @@ sudo mv dockerize /usr/local/bin
rm *.tar.gz


# install weave
# @see https://github.com/zettio/weave
curl -o weave -L https://github.com/zettio/weave/releases/download/latest_release/weave
sudo chmod a+x weave
sudo chown root weave
sudo chgrp root weave
sudo mv weave /usr/local/bin
# preload images
sudo weave setup


# clean up
sudo docker rm `sudo docker ps --no-trunc -a -q`
sudo docker rmi busybox
sudo docker rmi -f busybox
for SERVICE in "chef-client" "puppet"; do
/usr/sbin/update-rc.d -f $SERVICE remove
rm /etc/init.d/$SERVICE
pkill -9 -f $SERVICE
done
sudo apt-get autoremove -y chef puppet
sudo apt-get clean
sudo rm -f \
Expand Down

0 comments on commit 69259e9

Please sign in to comment.