-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker_setup.sh
executable file
·37 lines (33 loc) · 1011 Bytes
/
docker_setup.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
37
#!/bin/bash
if [ $# -lt 1 ]
then
echo "Usage : $0 run | run-cli | build"
exit
fi
HOST_DIR=~/data/apcmetrics
#-v $HOST_DIR:/mnt/apcmetrics/influxdb \
case $1 in
"run-cli")
docker run -t -p 3000:3000 \
-p 8083:8083 \
-p 8086:8086 \
-p 8088:8088 \
-p 2003:2003 \
--volumes-from apcmetrics \
-i ctradu/riemann-influxdb-grafana /bin/bash ;;
"run")
docker run -t -d -p 3000:3000 \
-p 8083:8083 \
-p 8086:8086 \
-p 8088:8088 \
-p 2003:2003 \
--volumes-from apcmetrics \
--name rig \
-i ctradu/riemann-influxdb-grafana;;
"build")
docker build -t ctradu/riemann-influxdb-grafana . ;;
*)
echo "Unknown option";
echo "Accepted options: run | build";
exit
esac