Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Rhea arhea

View GitHub Profile
@arhea
arhea / rexray_install.sh
Created Jan 11, 2017
Install and Configure RexRay with Docker
View rexray_install.sh
#!/bin/bash
curl -sSL https://dl.bintray.com/emccode/rexray/install | sh
cat > /etc/rexray/config.yml <<'EOF'
rexray:
modules:
default-docker:
disabled: true
efs-docker:
@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",
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 / 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
@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 / 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
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"
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 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:

@arhea
arhea / capistrano-laravel-deploy.rb
Last active Jul 12, 2017
Capistrano 3 deploy script for Laravel 4.
View capistrano-laravel-deploy.rb
# config valid only for Capistrano 3.1
lock '3.1.0'
set :application, "" # EDIT your app name
set :scm, :git
set :repo_url, "" # EDIT your git repository
set :keep_releases, 3