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 &
# Start ssh server
/usr/sbin/sshd -D
#/usr/sbin/sshd -D
;;
"workerservice")
# 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
# the connected hosts that are ready for MPI work
while sleep 1
do
#while sleep 1
#do
# shellcheck disable=SC2086
ssh -T -o "StrictHostKeyChecking no" \
-i "${USER_HOME}/.ssh/id_rsa" \
${USER}@${MPI_MASTER_SERVICE_NAME} \
# ssh -T -o "StrictHostKeyChecking no" \
# -i "${USER_HOME}/.ssh/id_rsa" \
# ${USER}@${MPI_MASTER_SERVICE_NAME} \
"tail -f /dev/null"
done
#done
;;
*)
echo 'role argument only accepts "masterservice" or "workerservice"'

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

@ -277,6 +277,10 @@ services:
- ${HYBRID_NETWORK}
volumes:
- $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:

Loading…
Cancel
Save