-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdockube-cmd.sh
More file actions
executable file
·37 lines (30 loc) · 941 Bytes
/
dockube-cmd.sh
File metadata and controls
executable file
·37 lines (30 loc) · 941 Bytes
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
#!/usr/bin/env sh
# -----------------------------------------------------------------------------
# OPTION COMMAND - DOCKUBE BUILDER
# -----------------------------------------------------------------------------
# Author : Dwi Fahni Denni (@zeroc0d3)
# Repository : https://github.com/dockube/dockube
# License : Apache v2
# -----------------------------------------------------------------------------
case $1 in
build)
echo "### Build All Container ###"
./dockube-build.sh
;;
compose-build)
echo "### Spesific Build Container ###"
docker-compose build $@
;;
compose-up)
echo "### Container Up ###"
docker-compose up -d
;;
compose-stop)
echo "### Stop All Container ###"
docker-compose stop -t 5
;;
compose-down)
echo "### Remove All Container ###"
docker-compose down -t 5
;;
esac