Browse Source

debug 3

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

2
run.yml

@ -123,7 +123,7 @@ services:
swarmlabsidecarserver: swarmlabsidecarserver:
image: hub.swarmlab.io:5480/hybrid-nginx:latest image: hub.swarmlab.io:5480/hybrid-nginx:latest
user: docker user: root
#privileged: true #privileged: true
container_name: swarmlab-sidecar-agent container_name: swarmlab-sidecar-agent
entrypoint: ["/usr/bin/sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] 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 default host file in background and dumb all output
auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 & 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 sleep 3
sh /root/start-nginx.sh nginx -g "daemon off;"
#sh /root/start-nginx.sh
sleep 2 sleep 2
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf #/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
nginx -g "daemon off;" nginx -g "daemon off;"
#ttyd -p 3787 bash & #ttyd -p 3787 bash &
tail -f /dev/null tail -f /dev/null

Loading…
Cancel
Save