Skip to content

Instantly share code, notes, and snippets.

View carmstrong's full-sized avatar

Chris Armstrong carmstrong

View GitHub Profile
/deis/store
/deis/store/monSetupComplete
/deis/store/filesystemSetupComplete
/deis/store/delayStart
/deis/store/monKeyring
/deis/store/adminKeyring
/deis/store/osds
/deis/store/osds/10.21.1.34
/deis/store/osds/10.21.2.188
/deis/store/osds/10.21.1.35
@carmstrong
carmstrong / policy.json
Created June 10, 2015 04:34
AWS IAM access policy for Deis creation
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1433910304184",
"Action": "autoscaling:*",
"Effect": "Allow",
"Resource": "*"
},
{
@carmstrong
carmstrong / gist:fc40c9034c7545d967eb
Created June 18, 2015 20:57
deis-builder new volume
diff --git a/deisctl/units/deis-builder.service b/deisctl/units/deis-builder.service
index 9de18c7..53661d8 100644
--- a/deisctl/units/deis-builder.service
+++ b/deisctl/units/deis-builder.service
@@ -4,11 +4,10 @@ Description=deis-builder
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=30m
-ExecStartPre=/bin/sh -c "docker inspect deis-builder-data >/dev/null 2>&1 || docker run --name deis-builder-data -v /var/lib/docker alpine:3.1 /bin/true"
ExecStartPre=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/builder` && docker history $IMAGE >/dev/null 2>&1 || docker pull $IMAGE"
@carmstrong
carmstrong / gist:88e96bc8ba359002d5e4
Created July 10, 2015 22:33
Deis healthcheck HTTP codes
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
@carmstrong
carmstrong / Dockerfile
Created August 14, 2015 00:01
Mount CoreOS VHD
FROM ubuntu:12.04
WORKDIR /tmp
RUN apt-get install -y bzip2 qemu wget
RUN modprobe nbd
RUN wget http://stable.release.core-os.net/amd64-usr/647.2.0/coreos_production_azure_image.vhd.bz2
RUN bzip2 -d coreos_production_azure_image.vhd.bz2
RUN qemu-nbd -c /dev/nbd0 coreos_production_azure_image.vhd
RUN mkdir /mnt/coreos
@carmstrong
carmstrong / diff.diff
Created October 1, 2015 01:17
azure diff
--- azuredeploy-sgoings.json 2015-09-30 18:15:49.000000000 -0700
+++ azuredeploy.json 2015-09-30 18:16:06.000000000 -0700
@@ -14,9 +14,15 @@
"description": "Domain name associated with the load balancer public IP"
}
},
+ "dnsPrefixNameForPublicIP": {
+ "type": "string",
+ "metadata": {
+ "description": "Unique DNS Name for the Public IP used to access the Virtual Machine."
@carmstrong
carmstrong / diff.diff
Created October 14, 2015 17:11
Custom Docker
core@deis-01 ~ $ logout
diff --git a/contrib/coreos/user-data.example b/contrib/coreos/user-data.example
index 5bb6e0f..48cb009 100644
--- a/contrib/coreos/user-data.example
+++ b/contrib/coreos/user-data.example
@@ -42,6 +42,23 @@ coreos:
command: stop
enable: false
- name: docker.service
+ content: |