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 d38b273..b74fe8e 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 & + ttyd -p 3787 bash # Start ssh server /usr/sbin/sshd -D ;; diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 21cc010..5acc431 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -345,6 +345,7 @@ fi /bin/mkdir -p $Wdir/project +/bin/mkdir -p $Wdir/logs /bin/cp -rf $DIR/project/bin $Wdir/project /bin/cp -rf $DIR/project/courses $Wdir/project /bin/cp -f $DIR/project/hello_world.sh $Wdir/project @@ -353,6 +354,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 @@ -381,6 +383,7 @@ services: - ${HYBRID_NETWORK} volumes: - $Wdir/project:/project + - $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd worker: @@ -397,6 +400,7 @@ services: - ${HYBRID_NETWORK} volumes: - $Wdir/project:/project + - $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd networks: ${HYBRID_NETWORK}: