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
docker run --name etcd \ | |
--publish 4001:4001 \ | |
--publish 7001:7001 \ | |
--detach \ | |
coreos/etcd:latest \ | |
/go/bin/app -listen-client-urls http://0.0.0.0:4001 \ | |
-advertise-client-urls http://$IP:4001 \ | |
-listen-peer-urls http://0.0.0.0:7001 \ | |
-initial-advertise-peer-urls http://$IP:7001 \ | |
-data-dir=/tmp/etcd |
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
IP="$(boot2docker ip 2>/dev/null)" |
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
eval $(boot2docker shellinit) |
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
#!/bin/bash | |
set -ex | |
# Source the boot2docker environment variables | |
eval $(boot2docker shellinit 2>/dev/null) | |
# Use a rails container to create a new rails project in the current directory called figgypudding | |
docker run -it --rm -v $(pwd):/app rails:latest bash -c 'rails new figgypudding; cp -a /figgypudding /app' | |
cd figgypudding |
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
alias fig="docker run -v $(pwd):/app -v $DOCKER_CERT_PATH:/certs -e DOCKER_CERT_PATH=/certs -e DOCKER_HOST=$DOCKER_HOST -e DOCKER_TLS_VERIFY=$DOCKER_TLS_VERIFY -ti --rm ianblenke/fig-docker fig" |
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
docker run -v $(pwd):/app -v $DOCKER_CERT_PATH:/certs -e DOCKER_CERT_PATH=/certs -e DOCKER_HOST=$DOCKER_HOST -e DOCKER_TLS_VERIFY=$DOCKER_TLS_VERIFY -ti --rm ianblenke/fig-docker fig --help |
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
# Make sure you have go installed, GOROOT defined, and are, well, ready to... go. | |
projects ian$ git clone https://github.com/deis/deis | |
projects ian$ cd deis | |
deis ian$ mkdir -p /opt/go | |
deis ian$ export GOPATH=/opt/go | |
deis ian$ export PATH=/opt/go/bin:$PATH | |
deis ian$ godep get github.com/deis/deisctl | |
deis ian$ export DEISCTL_UNITS=/opt/go/src/github.com/deisctl/units | |
deis ian$ vagrant up | |
Bringing machine 'deis-1' up with 'virtualbox' provider... |
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
/usr/bin/systemctl unmask update-engine.service | |
/usr/bin/systemctl start update-engine.service | |
Wait for the update, then lock it down with flagging again: | |
/usr/bin/systemctl stop update-engine.service | |
/usr/bin/systemctl mask update-engine.service |
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
name: shared | |
ships: | |
one: { ip: 10.2.10.16, docker_port: 4243 } | |
two: { ip: 10.2.27.100, docker_port: 4243 } | |
three: { ip: 10.2.38.249, docker_port: 4243 } | |
services: | |
zookeeper: | |
image: quay.io/signalfuse/zookeeper:3.4.5 | |
instances: | |
zookeeper-1: |