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 (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:

* 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:
#!/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 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
EXPOSE 8080
COPY ./templates/nginx.tmpl /etc/interlock/nginx.conf.template
@arhea
arhea / docker-compose.yml
Created December 22, 2016 22:59
Interlock & NGINX 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 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://logs.example.com:1111
# syslog over tcp
docker run -d --name=logspout \
@arhea
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": [
"ec2:AttachVolume",
"ec2:CreateVolume",
"ec2:CreateSnapshot",
@arhea
arhea / rexray_example.sh
Created January 11, 2017 18:41
Using RexRay on Amazon Web Services
#!/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 January 20, 2017 12:23
Ubuntu 16.04 LTS Docker Setup
#!/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 \