forked from ashelley/docker-cyanite-grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·36 lines (36 loc) · 1.34 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
echo "====================================="
echo "= BUILDING CASSANDRA ="
echo "====================================="
cd cassandra
docker build --tag="mbrannigan/cassandra:0.1.0" .
sleep 3
docker run -d --name="cass01" mbrannigan/cassandra:0.1.0
sleep 10
echo "====================================="
echo "= BUILDING ELASTICSEARCH ="
echo "====================================="
cd ../elasticsearch
docker build --tag="mbrannigan/elasticsearch:0.1.0" .
sleep 3
docker run -d -p 9200:9200 -p 9300:9300 --name='es01' mbrannigan/elasticsearch:0.1.0
sleep 10
echo "====================================="
echo "= BUILDING CYANITE ="
echo "====================================="
cd ../cyanite
docker build --tag="mbrannigan/cyanite:0.1.0" .
sleep 3
docker run -d -p 2003:2003 --name="cyanite01" --link cass01:cass01 mbrannigan/cyanite:0.1.0
sleep 10
echo "====================================="
echo "= BUILDING GRAPHITE ="
echo "====================================="
cd ../graphite_api
docker build --tag="mbrannigan/graphite_api:0.1.0" .
sleep 3
docker run -d -p 8000:8000 -p 80:80 --link cyanite01:cyanite01 --name "graphite01" mbrannigan/graphite_api:0.1.0
sleep 10
echo "====================================="
echo "= ALL DONE ="
echo "====================================="