- storage resource provisioned by admin.
- user request for persistent volume.
| 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" }): |
| [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 |
| 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", |
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:
https://github.com/ClusterHQ/ansible-role-flocker
Need ansible (mac OSX)
| #!/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 |