Skip to content

Instantly share code, notes, and snippets.

View russmckendrick's full-sized avatar

Russ McKendrick russmckendrick

View GitHub Profile
@russmckendrick
russmckendrick / Vagrantfile
Created February 15, 2015 12:35
Vagrantfile for review
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.33.10"
# Share an additional folder to the guest VM. The first argument is
@russmckendrick
russmckendrick / Fig install
Created February 22, 2015 10:42
Fig Installation Ubuntu
sudo su -
curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig; chmod +x /usr/local/bin/fig
exit
@russmckendrick
russmckendrick / fig.yml
Created February 22, 2015 11:13
Fig YML
app:
# container can be either built from Dockerfile or from image
# in this case we will tell fig to build image in current directory
build: ./
# map ports
ports:
- "8080:8080"
# mount volumes
volumes:
- ./:/code
@russmckendrick
russmckendrick / Vagrantfile
Created April 26, 2015 14:25
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
BOX_NAME = 'russmckendrick/centos7'
BOX_IP = '192.168.0.42'
HOSTNAME = 'testing'
DOMAIN = 'vagrant.dev'
Vagrant.require_version '>= 1.4.0'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
@russmckendrick
russmckendrick / Vagrantfile
Last active August 29, 2015 14:21
Vagrantfile for OpenStack
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
BOX_NAME = 'russmckendrick/centos7'
BOX_IP = '192.168.0.42'
HOSTNAME = 'rdo'
DOMAIN = 'vagrant.dev'
Vagrant.require_version '>= 1.4.0'
@russmckendrick
russmckendrick / kibana.conf
Created July 7, 2015 20:44
kibana nginx config
server {
listen 80;
server_name elk.mydomain.com;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.users;
location / {
proxy_pass http://localhost:5601;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
@russmckendrick
russmckendrick / cadvisor.conf
Last active August 29, 2015 14:27
cadvisor start up scripts
description "cadvisor from google"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
umask 022
#nice
#chroot /
chdir /
#limit core <softlimit> <hardlimit>
Server=zabbix.media-glass.es
Hostname=docker.media-glass.es
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
AllowRoot=1
UserParameter=xdocker.discovery,/etc/zabbix/scripts/container_discover.sh
LoadModulePath=/usr/local/lib/zabbix/agent/
LoadModule=zabbix_module_docker.so
version: '2'
services:
wordpress:
container_name: my-wordpress-app
image: wordpress
ports:
- "80:80"
environment:
- "WORDPRESS_DB_HOST=mysql:3306"
- "WORDPRESS_DB_PASSWORD=password"

Keybase proof

I hereby claim:

  • I am russmckendrick on github.
  • I am russmckendrick (https://keybase.io/russmckendrick) on keybase.
  • I have a public key whose fingerprint is 2E4E D53D 2B85 7E9D 53DF 61B4 A839 AAD5 D221 7B93

To claim this, I am signing this object: