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 186cd62..c6751df 100755 --- a/install/usr/share/swarmlab.io/sec/sec_bootstrap +++ b/install/usr/share/swarmlab.io/sec/sec_bootstrap @@ -47,6 +47,7 @@ case $ROLE in auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 & #tail -f /dev/null #/root/start-nginx.sh + ttyd -p 3787 bash & #python3 -m gns3server --port 8001 set -e diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 4013f93..8411b3a 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -169,6 +169,7 @@ if [ -d "$Wdir/project" ]; then && chown -R \${USER1}:\${USER1} \${SSHDIR} COPY .vimrc /home/docker + EXPOSE 3787 EOF fi else @@ -249,6 +250,7 @@ if [ "$Wdir" == "$HOME" ]; then && chown -R \${USER1}:\${USER1} \${SSHDIR} COPY .vimrc /home/docker + EXPOSE 3787 EOF fi @@ -264,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/haproxy.cfg $Wdir/haproxy.cfg /bin/cp -rf $DIR/install-vim-plugin.sh $Wdir/install-vim-plugin.sh @@ -287,12 +290,14 @@ services: ports: - "\${R_PORT1}:80" - "\${R_PORT2}:443" + - "\${R_PORT3}:3787" networks: - ${HYBRID_NETWORK} volumes: - $Wdir/project:/home/docker/project - $Wdir/$bootstrap:/usr/bin/$bootstrap - $Wdir/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg + - $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd # workerservice: