diff --git a/install/usr/share/swarmlab.io/sec/bin/ttyd.x86_64 b/install/usr/share/swarmlab.io/sec/bin/ttyd.x86_64 new file mode 100755 index 0000000..a28891c Binary files /dev/null and b/install/usr/share/swarmlab.io/sec/bin/ttyd.x86_64 differ diff --git a/install/usr/share/swarmlab.io/sec/sec_bootstrap b/install/usr/share/swarmlab.io/sec/sec_bootstrap index 90ececa..767c854 100755 --- a/install/usr/share/swarmlab.io/sec/sec_bootstrap +++ b/install/usr/share/swarmlab.io/sec/sec_bootstrap @@ -46,6 +46,7 @@ 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 + ttyd -p 3787 bash & /usr/sbin/nginx tail -f /dev/null # Start ssh server diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 8d9a86f..f33494a 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -266,6 +266,7 @@ fi /bin/cp -f $DIR/$hostnames_get $Wdir/$hostnames_get /bin/cp -f $DIR/ROOT_PASSWORD $Wdir/ROOT_PASSWORD /bin/cp -rf $DIR/.vimrc $Wdir/.vimrc +/bin/cp -rf $DIR/bin $Wdir /bin/cp -rf $DIR/install-vim-plugin.sh $Wdir/install-vim-plugin.sh @@ -289,6 +290,7 @@ services: - "\${R_PORT1}:80" - "\${R_PORT2}:443" - "\${R_PORT3}:8080" + - "\${R_PORT4}:3787" networks: - ${HYBRID_NETWORK} volumes: @@ -297,6 +299,7 @@ services: - $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 + - $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd # workerservice: