$ pip install -U pip
$ pip install -U wheel
#!/bin/bash | |
################################################################################ | |
# Quick script to get graphite up and going on a freshly installed ubuntu server | |
# Don't use this in production, this for purely for testing and play boxes. | |
# Written by: [email protected] | |
################################################################################ | |
GRAPHITE_URL="https://github.com/graphite-project/graphite-web/zipball/master" | |
GRAPHITE_ZIP="graphite-web-latest.zip" |
echo "deb http://au.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list | |
echo "deb-src http://au.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list | |
apt-get install wget | |
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb | |
dpkg -i puppetlabs-release-precise.deb | |
apt-get update | |
apt-get install puppetmaster |
# RUN ME, I am the worker! | |
# $ pip install fabric celery-with-redis | |
# $ celery -A tasks worker -E --loglevel=debug | |
from celery import Celery | |
from time import sleep | |
from fabric.api import env, run, execute | |
import sys | |
celery = Celery('tasks', broker='redis://', backend='redis://') |
#!/bin/bash -e | |
CONTAINTER_NAME=${1} | |
# If we are not provided a name to use, then use the name of | |
# the current directory | |
if [[ -z ${CONTAINTER_NAME} ]];then | |
CONTAINER_NAME=${PWD##*/} | |
fi | |
CONTAINER_VERSION=${2} |