Browse Source

debug 3

master
zeus 4 months ago
parent
commit
80b3779f38
  1. 2
      run.yml
  2. 8
      src-local/myconfig/sec_bootstrap

2
run.yml

@ -123,7 +123,7 @@ services:
swarmlabsidecarserver:
image: hub.swarmlab.io:5480/hybrid-nginx:latest
user: docker
user: root
#privileged: true
container_name: swarmlab-sidecar-agent
entrypoint: ["/usr/bin/sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]

8
src-local/myconfig/sec_bootstrap

@ -45,11 +45,13 @@ case $ROLE in
# Auto update default host file in background and dumb all output
auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 &
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
#/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
nginx -g "daemon off;"
sleep 3
sh /root/start-nginx.sh
nginx -g "daemon off;"
#sh /root/start-nginx.sh
sleep 2
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
#/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
nginx -g "daemon off;"
#ttyd -p 3787 bash &
tail -f /dev/null

Loading…
Cancel
Save