Skip to content

Instantly share code, notes, and snippets.

View ianblenke's full-sized avatar
🎯
Focusing

Ian Blenke ianblenke

🎯
Focusing
View GitHub Profile
deis-dev-vermillion-violin / # ls -la
total 144
-rw-r--r-- 1 root root 51 Jul 17 06:15 ?LY?X?
-rw-r--r-- 1 root root 51 Jul 17 07:22 VZ?X?
-rw-r--r-- 1 root root 51 Jul 20 21:35 {?&??
drwxr-xr-x 1 root root 524 Jul 20 21:39 .
drwxr-xr-x 1 root root 524 Jul 20 21:39 ..
-rw-r--r-- 1 root root 51 Jul 20 21:32 0}*?P?
-rw-r--r-- 1 root root 51 Jul 16 22:29 0?X?X?
-rw-r--r-- 1 root root 51 Jul 20 21:26 @a?"??
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:
mongo:
image: mongo:2.6.4
instances:
mongo-1:
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:
@ianblenke
ianblenke / gist:9dd30142aa3c92b3ba65
Created September 16, 2014 14:34
CoreOS update-engine mask/unmask for Deis
/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
@ianblenke
ianblenke / gist:800154a5bfa3df932b81
Created September 24, 2014 05:09
vagrant deis deploy using deisctl
# 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...
@ianblenke
ianblenke / docker_run_ianblenke_fig-docker.sh
Last active August 29, 2015 14:08
Running ianblenke/fig-docker
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
@ianblenke
ianblenke / alias_fig_docker_run_ianblenke_fig-docker.sh
Last active August 29, 2015 14:08
fig alias for docker run ianblenke/fig-docker
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"
@ianblenke
ianblenke / virtualbox_share_home_boot2docker.sh
Last active August 29, 2015 14:08
Sharing home directory with boot2docker
boot2docker down
VBoxManage sharedfolder add boot2docker-vm -name home -hostpath /Users
boot2docker up
@ianblenke
ianblenke / figgypudding.sh
Created November 8, 2014 06:56
Create a rails app and run it along with a mysql container using fig
#!/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
@ianblenke
ianblenke / boot2docker_shellinit.sh
Created November 8, 2014 08:57
Evaluate boot2docker environment variables
eval $(boot2docker shellinit)