Skip to content

Instantly share code, notes, and snippets.

View wallnerryan's full-sized avatar

Ryan Wallner wallnerryan

  • Boston, MA
  • 19:23 (UTC -04:00)
View GitHub Profile
import re, urllib
from bs4 import BeautifulSoup
myurl = "https://github.com/emccode/rexray"
html = urllib.urlopen(myurl).read()
soup = BeautifulSoup(html, 'html.parser')
file = open("github.analysis", "w")
file.write(myurl+"\n")
for sibling in soup.findAll("a", { "class" : "social-count" }):
@wallnerryan
wallnerryan / transcript.txt
Created January 26, 2016 02:59
transcript installing flocker 1.9.0-1 on RHEL 7.2
[root@ip-10-0-91-35 ec2-user]# yum install https://s3.amazonaws.com/clusterhq-archive/centos/clusterhq-release.el7.centos.noarch.rpm
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
clusterhq-release.el7.centos.noarch.rpm | 3.1 kB 00:00
Examining /var/tmp/yum-root-nwiRBj/clusterhq-release.el7.centos.noarch.rpm: clusterhq-release-1-7.el7.centos.noarch
Marking /var/tmp/yum-root-nwiRBj/clusterhq-release.el7.centos.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package clusterhq-release.noarch 0:1-7.el7.centos will be installed
--> Finished Dependency Resolution
@wallnerryan
wallnerryan / file.md
Last active January 29, 2016 18:46
k8sstoragestuff jan 29 2016

Storage in Kubernetes

PersistentVolume (PV)

  • storage resource provisioned by admin.

PersistentVolumeClaim (PVC)

  • user request for persistent volume.
version: '2'
services:
web:
image: binocarlos/moby-counter
ports:
- "80:80"
links:
- "redis:redis"

Here is the Marathon JSON used to deploy Riak on Mesos backed by Flocker and Calico Docker Networking

{
	"id": "marathon-demo-riak",
	"apps": [{
		"id": "riak1",
		"container": {
			"type": "DOCKER",
{
"id":"marathon-demo-riak",
"apps":[
{
"id":"riak1",
"container":{
"type":"DOCKER",
"docker":{
"image":"wallnerryan/riak-calico-mesos",
"network":"BRIDGE",

What you will be doing

In this small, self-guided workshop you will deploy and migrate a Redis database between hosts in a UCP cluster. You'll follow step-by-step instructions to:

  1. Add a Docker License to a Docker UCP Cluster.
  2. Add an extra UCP node the cluster so we can migrate a database between hosts.
  3. Use Docker compose to deploy an app with Redis backed by Flocker volumes and add some data to the app.
  4. Destroy the app. Argh!
  5. Start the app back up on a different node to demonstrate data movement. Phew.
@wallnerryan
wallnerryan / ClusterHQ-FlockerHub-Demo.sh
Last active November 18, 2016 19:06 — forked from pcgeek86/ClusterHQ-FlockerHub-Demo.sh
This Bash script is a simple end-to-end example of ClusterHQ Fli + FlockerHub.
#!/bin/bash
set -e
shopt -s expand_aliases
function Prereq {
### Install the ZFS Utilities for Linux
sudo apt install httpie zfsutils-linux -y
echo "Installed ZFS Linux utilities"
}
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at