-
Notifications
You must be signed in to change notification settings - Fork 39
/
run.sh
executable file
·56 lines (54 loc) · 1.74 KB
/
run.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
54
55
56
#!/bin/sh
#
# usage
# ./run.sh
# ./run.sh builder
# ./run.sh bash
# ./run.sh builder bash
#
if [ $# -eq 0 ]
then
# ./run.sh
# @see infra-dockercompose docker-compose.yml file
docker run -ti --network=host \
--env INSTANCE_UUID=localhost \
--env FULL_UNIT_NAME=live-webrtcsignaling@1.service \
--env CERT_FILE_PATH=/go/src/app/star_tribedev.pm.crt \
--env KEY_FILE_PATH=/go/src/app/star_tribedev.pm.key \
--env UNIT_NUMBER=1 \
--env JWT_SECRET=IvteOzwBqBRICDgOt61pRSXCLHkj0wYkSaIMbwvbts6ah3Rpqc \
--env GRAPHITE_IPV4=graphite.tribedev.pm \
--env RABBITMQ_URL=amqp://backend:backend2016@localhost:15672 \
--env PORT_NUMBER=1443 \
--env PUBLIC_IPV4=127.0.0.1 \
--env GST_DEBUG=3 \
--env GST_DEBUG_DUMP_DOT_DIR=/go/src/app/ \
live-webrtcsignaling
elif [ $# -eq 1 ] && [ $1 = "builder" ]
then
# ./run.sh builder
docker run -ti --network=host \
--env INSTANCE_UUID=localhost \
--env FULL_UNIT_NAME=live-webrtcsignaling@1.service \
--env CERT_FILE_PATH=/go/src/app/star_tribedev.pm.crt \
--env KEY_FILE_PATH=/go/src/app/star_tribedev.pm.key \
--env UNIT_NUMBER=1 \
--env JWT_SECRET=IvteOzwBqBRICDgOt61pRSXCLHkj0wYkSaIMbwvbts6ah3Rpqc \
--env GRAPHITE_IPV4=graphite.tribedev.pm \
--env RABBITMQ_URL=amqp://backend:backend2016@localhost:15672 \
--env PORT_NUMBER=1443 \
--env PUBLIC_IPV4=127.0.0.1 \
--env GST_DEBUG=3 \
--env GST_DEBUG_DUMP_DOT_DIR=/go/src/app/ \
live-webrtcsignaling:builder
elif [ $# -eq 1 ] && [ $1 = "bash" ]
then
# ./run.sh bash
docker run -ti live-webrtcsignaling bash
elif [ $# -eq 2 ] && [ $1 = "builder" ] && [ $2 = "bash" ]
then
# ./run.sh builder bash
docker run -ti live-webrtcsignaling:builder bash
else
echo "unknown command"
fi