Skip to content

Instantly share code, notes, and snippets.

View clintkitson's full-sized avatar

Clint Kitson clintkitson

View GitHub Profile
@clintkitson
clintkitson / gist:48fad1790a79c8dca6c1
Last active March 3, 2016 23:00
k8 docker-machine rexray demo
docker-machine create --driver=virtualbox k8
eval $(docker-machine env k8)
VBoxManage setproperty websrvauthlibrary null
/Applications/VirtualBox.app/Contents/MacOS/vboxwebsrv -H 0.0.0.0 -v
docker-machine ssh k8 "sudo mkdir -p /etc/rexray && sudo tee -a /etc/rexray/config.yml << EOF
rexray:
storageDrivers:
- virtualbox
docker-machine create --driver=virtualbox --virtualbox-memory=4096 --virtualbox-cpu-count=2 k8-build
eval $(docker-machine env k8-build)
docker-machine ssh k8-build sudo mkdir /etc/rexray
docker-machine ssh k8-build "sudo tee -a /etc/rexray/config.yml << EOF
rexray:
storageDrivers:
- virtualbox
modules:
@clintkitson
clintkitson / gist:832e86489ea1f480789e
Last active February 18, 2016 05:11
docker scaleio
docker-machine create --driver=virtualbox tb
eval $(docker-machine env tb)
docker-machine ssh tb sudo dd if=/dev/zero of=/sio_device1 bs=1 count=0 seek=100G
docker build -t scaleio-tb scaleio-tb/.
docker-machine create --driver=virtualbox mdm2
eval $(docker-machine env mdm2)
docker-machine ssh mdm2 sudo dd if=/dev/zero of=/sio_device1 bs=1 count=0 seek=100G
docker build -t scaleio-secondary-mdm scaleio-secondary-mdm/.
@clintkitson
clintkitson / gist:701373d87daa7343415a
Last active February 12, 2016 15:50
build and test volume drivers in docker using boot2docker and docker-machine form os x cli
docker-machine create --driver=virtualbox testing
docker-machine create --driver=virtualbox testing2
eval $(docker-machine env testing2)
docker-machine ssh testing2 "curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s staged"
docker-machine ssh testing2 "sudo tee -a /etc/rexray/config.yml << EOF
rexray:
logLevel: debug
storageDrivers:
- virtualbox
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This configuration requires Vagrant 1.5 or newer and two plugins:
#
# vagrant plugin install vagrant-hosts ~> 2.1.4
# vagrant plugin install vagrant-auto_network ~> 1.0.0
#
# After installation, the following steps will spin up a master and agent that
# can communicate with each other: