Skip to content

Instantly share code, notes, and snippets.

View arhea's full-sized avatar

Alex Rhea arhea

View GitHub Profile

Keybase proof

I hereby claim:

  • I am arhea on github.
  • I am arhea ( on keybase.
  • I have a public key whose fingerprint is CACC 9290 4E35 0600 F293 4DB8 41A4 DB43 D4DB 0DD4

To claim this, I am signing this object:

* diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.
Please include the following information in your report:
Terraform Version: 0.8.1
Resource ID:
Mismatch reason: attribute mismatch: egress.3016490570.action
Diff One (usually from plan): *terraform.InstanceDiff{mu:sync.Mutex{state:0, sema:0x0}, Attributes:map[string]*terraform.ResourceAttrDiff{"egress.730019245.icmp_code":*terraform.ResourceAttrDiff{Old:"0", New:"0", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ingress.3016490570.cidr_block":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ingress.3016490570.icmp_type":*terraform.ResourceAttrDiff{Old:"0", New:"0", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:
( cat <<-EOF
ListenAddr = ":8080"
TLSCACert = "/certs/ca.pem"
TLSCert = "/certs/cert.pem"
TLSKey = "/certs/key.pem"
Name = "nginx"
arhea / Dockerfile
Created December 22, 2016 22:58
Interlock Dockerfile
FROM ehazlett/interlock:1.1.1
RUN apk add --no-cache bash gawk sed grep bc coreutils
VOLUME /certs
COPY ./templates/nginx.tmpl /etc/interlock/nginx.conf.template
arhea / docker-compose.yml
Created December 22, 2016 22:59
Interlock & NGINX docker-compose.yml
restart: always
tty: true
- 'affinity:container!=*interlock*'
- 'SWARM_HOST=tcp://'
- /var/run/docker.sock:/var/run/docker.sock
- 'ucp-node-certs:/certs'
arhea /
Last active December 22, 2016 23:03
Docker JSON File Log Options
--log-driver json-file # logging driver
--log-opt max-size=50m # max size of a log file
--log-opt max-file=4 # number of files to create before discarding logs
# syslog over udp
docker run -d --name=logspout \
--restart always \
-v /var/run/docker.sock:/var/run/docker.sock \
gliderlabs/logspout \
# syslog over tcp
docker run -d --name=logspout \
arhea / rexray_iam_policy.json
Created January 11, 2017 18:35
RexRay Amazon Web Services IAM Policy
"Version": "2012-10-17",
"Statement": [
"Sid": "",
"Effect": "Allow",
"Action": [
arhea /
Created January 11, 2017 18:41
Using RexRay on Amazon Web Services
# create example EFS mount point
docker volume create --driver=efs --name=example-efs
# create example EBS disk within this availability zone
docker volume create --driver=ebs --name=example-ebs
# run an example container with EBS mount
docker run -it --rm -v example-ebs:/data --volume-driver=ebs busybox sh
arhea /
Created January 20, 2017 12:23
Ubuntu 16.04 LTS Docker Setup
set -ex
apt-get update -y && apt-get upgrade -y
apt-get install -y linux-image-extra-$(uname -r) \
linux-image-extra-virtual \
unzip \
git \
python \