This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-prod.sh
44 lines (42 loc) · 1.89 KB
/
start-prod.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
#!/bin/bash
for component in "$@"
do
case ${component} in
artemis)
docker-compose -f docker/docker-compose.prod.yaml stop artemis
yes | docker-compose -f docker/docker-compose.prod.yaml rm artemis
docker-compose -f docker/docker-compose.prod.yaml pull artemis
docker-compose -f docker/docker-compose.prod.yaml create artemis
docker-compose -f docker/docker-compose.prod.yaml start artemis
;;
apollo)
docker-compose -f docker/docker-compose.prod.yaml stop apollo
yes | docker-compose -f docker/docker-compose.prod.yaml rm apollo
docker-compose -f docker/docker-compose.prod.yaml pull apollo
docker-compose -f docker/docker-compose.prod.yaml create apollo
docker-compose -f docker/docker-compose.prod.yaml start apollo
;;
ares)
docker-compose -f docker/docker-compose.prod.yaml stop ares
yes | docker-compose -f docker/docker-compose.prod.yaml rm ares
docker-compose -f docker/docker-compose.prod.yaml pull ares
docker-compose -f docker/docker-compose.prod.yaml create ares
docker-compose -f docker/docker-compose.prod.yaml start ares
;;
poseidon)
docker-compose -f docker/docker-compose.prod.yaml stop poseidon
yes | docker-compose -f docker/docker-compose.prod.yaml rm poseidon
docker-compose -f docker/docker-compose.prod.yaml pull poseidon
docker-compose -f docker/docker-compose.prod.yaml create poseidon
docker-compose -f docker/docker-compose.prod.yaml start poseidon
;;
zeus)
docker-compose -f docker/docker-compose.prod.yaml stop zeus
yes | docker-compose -f docker/docker-compose.prod.yaml rm zeus
docker-compose -f docker/docker-compose.prod.yaml pull zeus
docker-compose -f docker/docker-compose.prod.yaml create zeus
docker-compose -f docker/docker-compose.prod.yaml start zeus
;;
esac
done
yes | docker image prune