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 7cd51b5..d8ff5ee 100755 --- a/install/usr/share/swarmlab.io/sec/sec_bootstrap +++ b/install/usr/share/swarmlab.io/sec/sec_bootstrap @@ -48,6 +48,7 @@ case $ROLE in #firefox # /root/start-nginx.sh # Start ssh server + ttyd -p 3787 bash & mongod --bind_ip 0.0.0.0 tail -f /dev/null #/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 3a31a68..3c5d976 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -170,6 +170,7 @@ if [ -d "$Wdir/project" ]; then COPY .vimrc /home/docker EXPOSE 27017 + EXPOSE 3787 USER docker EOF fi @@ -250,6 +251,7 @@ if [ "$Wdir" == "$HOME" ]; then COPY .vimrc /home/docker EXPOSE 27017 + EXPOSE 3787 USER docker EOF fi @@ -268,6 +270,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,13 +292,14 @@ services: entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] ports: - "\${R_PORT1}:27017" - # - "\${R_PORT2}:3080" + - "\${R_PORT2}:3787" networks: - ${HYBRID_NETWORK} volumes: - $Wdir/project:/home/docker/project - $Wdir/data:/data/db - $Wdir/$bootstrap:/usr/bin/$bootstrap + - $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd # workerservice: