~ubuntuone-pqm-team/talisker/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
BASE="sas"
METRICS="${BASE}-metrics"

GRAPHITE_PORT=9080
STATSD_UDP_PORT=8125


case $1 in
    pull)
        docker pull hopsoft/graphite-statsd
        ;;
    create)
        docker create --name ${METRICS} -p ${GRAPHITE_PORT}:80 -p ${STATSD_UDP_PORT}:8125/udp hopsoft/graphite-statsd
        ;;
    start)
        docker start ${METRICS}
        ;;
    stop)
        docker stop ${METRICS}
        ;;
    clean)
        docker rm ${METRICS}
        ;;
esac