Skip to content

Instantly share code, notes, and snippets.

View ianblenke's full-sized avatar
🎯
Focusing

Ian Blenke ianblenke

🎯
Focusing
View GitHub Profile
@ianblenke
ianblenke / boot2docker_ipo.sh
Created November 8, 2014 08:58
Get boot2docker's VM IP address
IP="$(boot2docker ip 2>/dev/null)"
@ianblenke
ianblenke / development_etcd_container.sh
Created November 8, 2014 09:00
Create a stand-alone development etcd container for a host public IP
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
@ianblenke
ianblenke / docker_run_deis-store-daemon.sh
Created November 8, 2014 09:01
Run a deis/store-daemon docker container (ceph-osd)
docker run --name deis-store-daemon \
--volumes-from=deis-store-daemon-data \
--env HOST=$IP \
--publish 6800 \
--net host \
--detach \
deis/store-daemon:latest
@ianblenke
ianblenke / docker_run_etcd_etcdctl.sh
Created November 8, 2014 09:04
Docker run etcdctl to set an etcd key for /deis/store/hosts/$IP
docker run --rm \
coreos/etcd \
/bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; \
go install ; \
/go/bin/etcdctl --peers $IP:4001 \
set /deis/store/hosts/$IP $IP"
@ianblenke
ianblenke / docker_run_deis-store-monitor.sh
Created November 8, 2014 09:05
Docker run deis/store-monitor (ceph-mon)
docker run --name deis-store-monitor \
--env HOST=$IP \
--publish 6789 \
--net host \
--detach \
deis/store-monitor:latest
@ianblenke
ianblenke / docker_run_deis-store-gateway.sh
Created November 8, 2014 09:06
Docker run deis/store-gateway (ceph-radosgw)
docker run --name deis-store-gateway \
--hostname deis-store-gateway \
--env HOST=$IP \
--env EXTERNAL_PORT=8888 \
--publish 8888:8888 \
--detach \
deis/store-gateway:latest
@ianblenke
ianblenke / docker_run_etcd_etcdctl_get_keys.sh
Created November 8, 2014 09:08
Docker run etcd container to etcdctl get /deis/store/gateway keys
AWS_ACCESS_KEY_ID=$(docker run --rm coreos/etcd /bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; go install ; /go/bin/etcdctl --peers $IP:4001 get /deis/store/gateway/accessKey")
AWS_SECRET_ACCESS_KEY=$(docker run --rm coreos/etcd /bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; go install ; /go/bin/etcdctl --peers $IP:4001 get /deis/store/gateway/secretKey")
AWS_S3_HOST=$(docker run --rm coreos/etcd /bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; go install ; /go/bin/etcdctl --peers $IP:4001 get /deis/store/gateway/host")
AWS_S3_PORT=$(docker run --rm coreos/etcd /bin/sh -c "cd /go/src/github.com/coreos/etcd/etcdctl; go install ; /go/bin/etcdctl --peers $IP:4001 get /deis/store/gateway/port")
@ianblenke
ianblenke / update_chromeookbox_seabios.sh
Created November 10, 2014 00:03
SeaBIOS flashing a ChromeBook/ChromeBox
wget https://johnlewis.ie/getnflash_johnlewis_rom.sh
chmod u+x getnflash_johnlewis_rom.sh
./getnflash_johnlewis_rom.sh
@ianblenke
ianblenke / gist:7084bf5a815d4bdc474c
Last active August 29, 2015 14:09
A simple all-in-one devstack local.conf
[[local|localrc]]
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50
ADMIN_PASSWORD=nomoresecrets
MYSQL_PASSWORD=iheartdatabases
RABBIT_PASSWORD=flopsymopsy
SERVICE_PASSWORD=$ADMIN_PASSWORD
#HOST_IP=10.0.0.106
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
@ianblenke
ianblenke / .fog
Created November 10, 2014 01:13
openstack .fog
:openstack:
:openstack_auth_url: http://10.0.0.106:5000/v2.0/tokens
:openstack_api_key: nomoresecrets
:openstack_username: admin
:openstack_tenant: admin
:openstack_region: RegionOne # Optional