Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Rhea arhea

View GitHub Profile
View readme.md

Keybase proof

I hereby claim:

  • I am arhea on github.
  • I am arhea (https://keybase.io/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:

View terraform_debug.txt
* aws_network_acl.data: 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: aws_network_acl.data
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:"0.0.0.0/0", New:"0.0.0.0/0", 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:
View interlock-entrypoint.sh
#!/bin/bash
( cat <<-EOF
ListenAddr = ":8080"
DockerURL = "$SWARM_HOST"
TLSCACert = "/certs/ca.pem"
TLSCert = "/certs/cert.pem"
TLSKey = "/certs/key.pem"
[[Extensions]]
Name = "nginx"
@arhea
arhea / Dockerfile
Created Dec 22, 2016
Interlock Dockerfile
View Dockerfile
FROM ehazlett/interlock:1.1.1
RUN apk add --no-cache bash gawk sed grep bc coreutils
VOLUME /certs
EXPOSE 8080
COPY ./templates/nginx.tmpl /etc/interlock/nginx.conf.template
@arhea
arhea / docker-compose.yml
Created Dec 22, 2016
Interlock & NGINX docker-compose.yml
View docker-compose.yml
interlock:
image: dtr.example.com/proxy/interlock:latest
restart: always
tty: true
environment:
- 'affinity:container!=*interlock*'
- 'SWARM_HOST=tcp://ucp.examplpe.com:2376'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- 'ucp-node-certs:/certs'
@arhea
arhea / docker-log-options.sh
Last active Dec 22, 2016
Docker JSON File Log Options
View docker-log-options.sh
--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
View docker-logspout.sh
# syslog over udp
docker run -d --name=logspout \
--restart always \
-v /var/run/docker.sock:/var/run/docker.sock \
gliderlabs/logspout \
syslog://logs.example.com:1111
# syslog over tcp
docker run -d --name=logspout \
@arhea
arhea / rexray_iam_policy.json
Created Jan 11, 2017
RexRay Amazon Web Services IAM Policy
View rexray_iam_policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Action": [
"ec2:AttachVolume",
"ec2:CreateVolume",
"ec2:CreateSnapshot",
@arhea
arhea / rexray_example.sh
Created Jan 11, 2017
Using RexRay on Amazon Web Services
View rexray_example.sh
#!/bin/bash
# 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
arhea / setup.sh
Created Jan 20, 2017
Ubuntu 16.04 LTS Docker Setup
View setup.sh
#!/bin/bash
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 \