forked from Telecominfraproject/wlan-cloud-loadsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker_start.sh
executable file
·22 lines (20 loc) · 981 Bytes
/
docker_start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# This file in invoked from within docker to start the application. It should not be used otherwise.
cd /owls
case $ERL_NODE_TYPE in
manager)
cp priv/templates/simmanager.args.template.docker config/vm.args
cp priv/templates/simmanager.config.template.docker config/sys.config
erl -config config/sys.config -args_file config/vm.args -name $ERL_NODE_NAME $ERL_OPTIONS -pa deps/*/ebin -pa ebin
;;
node)
cp priv/templates/simnode.args.template.docker config/vm.args
cp priv/templates/simnode.config.template.docker config/sys.config
erl -config config/sys.config -args_file config/vm.args -name $ERL_NODE_NAME $ERL_OPTIONS -pa deps/*/ebin -pa ebin
;;
monitor)
cp priv/templates/simmonitor.args.template.docker config/vm.args
cp priv/templates/simmonitor.config.template.docker config/sys.config
erl -config config/sys.config -args_file config/vm.args -name $ERL_NODE_NAME $ERL_OPTIONS -pa deps/*/ebin -pa ebin
;;
esac