-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
23 lines (17 loc) · 905 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash -e
# run this container only for testing integrety
echo remember to: docker push logicmoo/logicmoo_starter_image:latest \
&& echo docker run -v /sys/fs/cgroup/:/sys/fs/cgroup:ro --cap-add SYS_ADMIN --security-opt=seccomp:unconfined logicmoo/logicmoo_starter_image --privileged
#CMD /sbin/init ; service redis-server start ; systemctl enable butterfly.socket ; systemctl start butterfly.socket ; systemctl start apache2
systemctl enable butterfly.socket
system apache2 start # sleep 10000000
# if command starts with an option, prepend the default command and options
if [ "${1:0:1}" = '-' ]; then
set -- butterfly.server.py --unsecure --host=0.0.0.0 --port=${PORT:-57575} "$@"
elif [ "$1" = 'butterfly.server.py' ]; then
shift
set -- butterfly.server.py --unsecure --host=0.0.0.0 --port=${PORT:-57575} "$@"
fi
# Set password
echo "root:${PASSWORD:-password}" | chpasswd
exec "$@"