Skip to content

Instantly share code, notes, and snippets.

View russmckendrick's full-sized avatar
📚
Writting the second edition of Learn Ansible.

Russ McKendrick russmckendrick

📚
Writting the second edition of Learn Ansible.
View GitHub Profile
@russmckendrick
russmckendrick / 01-jekyll.md
Last active August 29, 2015 13:55
Some Jekyll Snippets

Getting just the latest post;

{% for post in site.posts offset: 0 limit: 1 %}
<div class="some-style">
<a href="{{post.url}}">
<h3 class='news-title'>{{ post.title }}</h3>
<span class='news-date'>{{ post.date | date_to_string }}</span>
</a>
{{ page.excerpt }} <a href="{{post.url}}"><span class="read-more"> Read more</span></a>
@russmckendrick
russmckendrick / docker.md
Last active August 29, 2015 13:56
Docker Installation & Notes

Docker Notes

Installation

this assumes a clean installation of CentOS 6.5

yum install http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install docker-io
service docker start
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future <COMMAND>
location some-location {
add_header X-my-header my-header-content;
}
@russmckendrick
russmckendrick / shipyard.md
Last active August 29, 2015 14:00
Shipyard Installation

Install Shipyard

yum install http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install docker-io vim-enhanced
vim /etc/sysconfig/docker # Replace other_args="" with other_args="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock"
service docker start
chkconfig docker on
docker run -i -t -v /var/run/docker.sock:/docker.sock shipyard/deploy setup
@russmckendrick
russmckendrick / oo-install.md
Last active August 29, 2015 14:02
oo-install

This GIST accompanies this blog post ....

Checking for necessary tools...
...looks good.
Downloading oo-install package...
Extracting oo-install to temporary directory...
Starting oo-install...
OpenShift Installer (Build 20140515-1427)
----------------------------------------------------------------------
brew install python
sudo brew postinstall python
sudo pip install --upgrade https://github.com/sickill/asciinema/tarball/master
asciinema auth
brew install auto-scaling
brew install aws-cfn-tools
brew install aws-elasticache
brew install aws-elasticbeanstalk
brew install aws-iam-tools
brew install aws-sns-cli
brew install cloud-watch
brew install ec2-ami-tools
brew install ec2-api-tools
brew install elb-tools
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock -t russmckendrick/nginx-proxy
mkdir /home/myawesometest
vim /home/myawesometest/fig.yml
webserver:
image: russmckendrick/nginx-php
volumes:
- /home/containers/web:/var/www/html/
ports:
@russmckendrick
russmckendrick / coreos.md
Last active August 29, 2015 14:06
Install etcd & fleetctrl on a mac

Grab an etcd token;

curl -w "\n" https://discovery.etcd.io/new
https://discovery.etcd.io/<token>
#cloud-config