From 30c6c11724ea81eec7106b550e9d91fa28219b9d Mon Sep 17 00:00:00 2001 From: William Yeh Date: Wed, 4 Mar 2015 12:50:27 +0800 Subject: [PATCH] Add: Docker Swarm and Docker Machine --- README.md | 4 ++++ debian-jessie/vagrant-provision.sh | 14 +++++++++++++- ubuntu-trusty/vagrant-provision.sh | 14 +++++++++++++- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 158292d..eb61829 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,10 @@ Use the following public box names (all available from [Vagrant Cloud](https://v - [Docker Compose](https://github.com/docker/compose) (was: Fig): Fast, isolated development environments using Docker. +- [Docker Swarm](https://github.com/docker/swarm): a Docker-native clustering system. + +- [Docker Machine](https://github.com/docker/machine): Machine management for a container-centric world. + - [Pipework](https://github.com/jpetazzo/pipework) - [docker-gen](https://github.com/jwilder/docker-gen) diff --git a/debian-jessie/vagrant-provision.sh b/debian-jessie/vagrant-provision.sh index 75779bc..e2a64c5 100644 --- a/debian-jessie/vagrant-provision.sh +++ b/debian-jessie/vagrant-provision.sh @@ -15,6 +15,7 @@ export LANGUAGE=en_US.UTF-8 readonly COMPOSE_VERSION=1.1.0 +readonly MACHINE_VERSION=0.1.0 readonly DOCKERGEN_VERSION=0.3.7 readonly DOCKERGEN_TARBALL=docker-gen-linux-amd64-$DOCKERGEN_VERSION.tar.gz @@ -70,11 +71,18 @@ EOF_REGISTRY # install Docker Compose (was: Fig) # @see http://docs.docker.com/compose/install/ -curl -o docker-compose -L https://github.com/docker/fig/releases/download/$COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` +curl -o docker-compose -L https://github.com/docker/compose/releases/download/$COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` chmod a+x docker-compose sudo mv docker-compose /usr/local/bin +# install Docker Machine +# @see https://docs.docker.com/machine/ +curl -o docker-machine -L https://github.com/docker/machine/releases/download/v$MACHINE_VERSION/docker-machine_linux-amd64 +chmod a+x docker-machine +sudo mv docker-machine /usr/local/bin + + # install Pipework # @see https://github.com/jpetazzo/pipework curl -o pipework -L https://raw.githubusercontent.com/jpetazzo/pipework/master/pipework @@ -102,6 +110,10 @@ sudo mv dockerize /usr/local/bin rm *.tar.gz +# install swarm +sudo docker pull swarm + + # install weave # @see https://github.com/zettio/weave curl -o weave -L https://github.com/zettio/weave/releases/download/latest_release/weave diff --git a/ubuntu-trusty/vagrant-provision.sh b/ubuntu-trusty/vagrant-provision.sh index 8987fd5..bcbea0b 100644 --- a/ubuntu-trusty/vagrant-provision.sh +++ b/ubuntu-trusty/vagrant-provision.sh @@ -15,6 +15,7 @@ export LANGUAGE=en_US.UTF-8 readonly COMPOSE_VERSION=1.1.0 +readonly MACHINE_VERSION=0.1.0 readonly DOCKERGEN_VERSION=0.3.7 readonly DOCKERGEN_TARBALL=docker-gen-linux-amd64-$DOCKERGEN_VERSION.tar.gz @@ -74,11 +75,18 @@ EOF_REGISTRY # install Docker Compose (was: Fig) # @see http://docs.docker.com/compose/install/ -curl -o docker-compose -L https://github.com/docker/fig/releases/download/$COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` +curl -o docker-compose -L https://github.com/docker/compose/releases/download/$COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` chmod a+x docker-compose sudo mv docker-compose /usr/local/bin +# install Docker Machine +# @see https://docs.docker.com/machine/ +curl -o docker-machine -L https://github.com/docker/machine/releases/download/v$MACHINE_VERSION/docker-machine_linux-amd64 +chmod a+x docker-machine +sudo mv docker-machine /usr/local/bin + + # install Pipework # @see https://github.com/jpetazzo/pipework curl -o pipework -L https://raw.githubusercontent.com/jpetazzo/pipework/master/pipework @@ -106,6 +114,10 @@ sudo mv dockerize /usr/local/bin rm *.tar.gz +# install swarm +sudo docker pull swarm + + # install weave # @see https://github.com/zettio/weave curl -o weave -L https://github.com/zettio/weave/releases/download/latest_release/weave