forked from lindb/lindb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker.sh
executable file
·53 lines (47 loc) · 813 Bytes
/
docker.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
all_before(){
echo "### make build-all start!"
make build GOOS=linux
echo "### make build-all done!"
}
build(){
all_before
echo "docker build start"
docker-compose build
echo "docker build done"
}
start(){
echo "docker start"
docker-compose up
echo "start docker done"
}
stop(){
echo "docker stop"
docker-compose stop
echo "stop docker done"
}
help(){
echo "help Display this help."
echo "build Build project docker image."
echo "start start project docker image."
echo "stop start project docker image."
}
case "$1" in
build)
build
;;
help)
help
;;
start)
start
;;
stop)
stop
;;
*)
help
exit 1
;;
esac
exit 0