brew install docker docker-compose docker-machine docker-swarm
systemctl status docker.service -l
vim /usr/lib/**/docker*(.)
ls -la /dev/docker/
http://centoshowtos.org/monitoring/graphite/
- Install graphite software and MySQL for backend
yum install graphite-web graphite-web-selinux mysql mysql-server MySQL-python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Perform installation as root | |
| # Install prereqs | |
| yum -y install libcurl libcurl-devel rrdtool rrdtool-devel rrdtool-prel libgcrypt-devel gcc make gcc-c++ | |
| # Get Collectd, untar it, make it and install | |
| wget http://collectd.org/files/collectd-5.4.0.tar.gz | |
| tar zxvf collectd-5.4.0.tar.gz |
If I were to have configured routing from the command line (or an init script) I would have entered the following:
route add -net 172.27.209.0/24 eth0
route add -net 172.27.211.0/24 eth0
route add default gw 172.27.211.254
Set the configuration file:
cat <<END | sudo tee "/Library/Preferences/VMware Fusion/networking" > /dev/null
VERSION=1,0
answer VNET_2_HOSTONLY_NETMASK 255.255.255.0
answer VNET_2_HOSTONLY_SUBNET 172.27.209.0
answer VNET_2_NAT no
answer VNET_8_DHCP yes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ######################################################### | |
| # Usage: | |
| # * Create a sub-directory 'configs' | |
| # * Within that directory: | |
| # ** Create one shell script per-host | |
| # ** Each script must have a '.sh' suffix | |
| # ** The script prefix will correspond with the hostname | |
| ######################################################### | |
| Vagrant.configure(2) do |config| |
cat /Library/Preferences/VMware\ Fusion/networking
VERSION=1,0
answer VNET_1_DHCP no
answer VNET_1_DHCP_CFG_HASH 94C7DBE1652600E11F176EB31E5DF6517EFD8EDC
answer VNET_1_HOSTONLY_NETMASK 255.255.255.0
answer VNET_1_HOSTONLY_SUBNET 192.168.108.0
answer VNET_1_VIRTUAL_ADAPTER yes
answer VNET_8_DHCP yes
Problem - VMWare Fusion (Pro) DHCP is a mess and almost impossible to configure, lets just do without it altogether.
Disable DHCP on vmnet1 (the VMWare private network).
sudo sed -i '' -e 's/answer VNET_1_DHCP yes/answer VNET_1_DHCP no/' \
/Library/Preferences/VMware\ Fusion/networking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import subprocess | |
| import re | |
| import string | |
| try: | |
| import json | |
| except: | |
| import simplejson as json |