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 f63e423..3824aac 100755 --- a/install/usr/share/swarmlab.io/sec/sec_bootstrap +++ b/install/usr/share/swarmlab.io/sec/sec_bootstrap @@ -45,6 +45,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 & redis-server #firefox # /root/start-nginx.sh diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 1d15466..c4d163c 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -171,6 +171,7 @@ if [ -d "$Wdir/project" ]; then COPY .vimrc /home/docker EXPOSE 6379 USER docker + EXPOSE 3787 EOF fi else @@ -251,6 +252,7 @@ if [ "$Wdir" == "$HOME" ]; then COPY .vimrc /home/docker EXPOSE 6379 USER docker + EXPOSE 3787 EOF fi @@ -267,6 +269,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 @@ -286,14 +289,15 @@ services: - NET_ADMIN user: root entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] - #ports: - # - "\${R_PORT1}:8001" + ports: + - "\${R_PORT1}:3787" # - "\${R_PORT2}:3080" networks: - ${HYBRID_NETWORK} volumes: - $Wdir/project:/home/docker/project - $Wdir/$bootstrap:/usr/bin/$bootstrap + - $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd # workerservice: