Last active
June 2, 2016 15:54
-
-
Save clintkitson/066e8f069f6cea919a87c8506c371d6a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a Polly host and a Docker engine host | |
docker-machine create --driver=virtualbox agent1 | |
// Install and configure Docker engine host with REX-Ray talking to Polly | |
for each in $(echo -e "agent1\n"); do docker-machine ssh $each "curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s unstable" ; done | |
for each in $(echo -e "agent1\n"); do docker-machine ssh $each "sudo tee -a /etc/rexray/config.yml << EOF | |
rexray: | |
modules: | |
default-docker: | |
host: unix:///run/docker/plugins/rexray.sock | |
spec: /etc/docker/plugins/rexray.spec | |
libstorage: | |
service: virtualbox | |
libstorage: | |
embedded: true | |
server: | |
services: | |
virtualbox: | |
driver: virtualbox | |
virtualbox: | |
endpoint: http://10.0.2.2:18083 | |
tls: false | |
volumePath: /Users/clintonkitson/VirtualBox Volumes | |
controllerName: SATA | |
" ; done | |
for each in $(echo -e "agent1\n"); do docker-machine ssh $each "sudo rexray start" ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment