Browse Source

ad config

master
zeus 3 years ago
parent
commit
4c220cf534
  1. 16
      install/usr/share/swarmlab.io/sec/sec_bootstrap
  2. 4
      install/usr/share/swarmlab.io/sec/swarmlab-sec

16
install/usr/share/swarmlab.io/sec/sec_bootstrap

@ -47,25 +47,25 @@ case $ROLE in
auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 & auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 &
# Start ssh server # Start ssh server
/usr/sbin/sshd -D #/usr/sbin/sshd -D
;; ;;
"workerservice") "workerservice")
# Start ssh server in background # Start ssh server in background
/usr/sbin/sshd -D & #/usr/sbin/sshd -D &
# Keep trying to connect to master node and stay there indefinitely so that master node can see # Keep trying to connect to master node and stay there indefinitely so that master node can see
# the connected hosts that are ready for MPI work # the connected hosts that are ready for MPI work
while sleep 1 #while sleep 1
do #do
# shellcheck disable=SC2086 # shellcheck disable=SC2086
ssh -T -o "StrictHostKeyChecking no" \ # ssh -T -o "StrictHostKeyChecking no" \
-i "${USER_HOME}/.ssh/id_rsa" \ # -i "${USER_HOME}/.ssh/id_rsa" \
${USER}@${MPI_MASTER_SERVICE_NAME} \ # ${USER}@${MPI_MASTER_SERVICE_NAME} \
"tail -f /dev/null" "tail -f /dev/null"
done #done
;; ;;
*) *)
echo 'role argument only accepts "masterservice" or "workerservice"' echo 'role argument only accepts "masterservice" or "workerservice"'

4
install/usr/share/swarmlab.io/sec/swarmlab-sec

@ -277,6 +277,10 @@ services:
- ${HYBRID_NETWORK} - ${HYBRID_NETWORK}
volumes: volumes:
- $Wdir/project:/home/docker/project - $Wdir/project:/home/docker/project
- $Wdir/project/data-www:/data-www
- $Wdir/project/config/nginx.conf:/etc/nginx/nginx.conf
- $Wdir/project/config/default.conf:/etc/nginx/conf.d/default.conf
- $Wdir/project/config/supervisord.conf:/etc/supervisor/supervisord.conf
workerservice: workerservice:

Loading…
Cancel
Save