zeus 3 years ago
parent
commit
9a84cca73d
  1. BIN
      install/usr/share/swarmlab.io/sec/bin/ttyd.x86_64
  2. 5
      install/usr/share/swarmlab.io/sec/sec_bootstrap
  3. 16
      install/usr/share/swarmlab.io/sec/swarmlab-sec

BIN
install/usr/share/swarmlab.io/sec/bin/ttyd.x86_64

Binary file not shown.

5
install/usr/share/swarmlab.io/sec/sec_bootstrap

@ -48,8 +48,9 @@ case $ROLE in
#firefox #firefox
# /root/start-nginx.sh # /root/start-nginx.sh
# Start ssh server # Start ssh server
cd /root/noVNC/utils ttyd -p 3787 bash &
./novnc_proxy --vnc localhost:5900 --listen 0.0.0.0:6080 cd /dockerstartup
./vnc_startup.sh
tail -f /dev/null tail -f /dev/null
#/usr/sbin/sshd -D #/usr/sbin/sshd -D
;; ;;

16
install/usr/share/swarmlab.io/sec/swarmlab-sec

@ -177,7 +177,8 @@ if [ -d "$Wdir/project" ]; then
EXPOSE 80 EXPOSE 80
EXPOSE 6080 EXPOSE 6901
EXPOSE 3787
EOF EOF
fi fi
else else
@ -260,7 +261,8 @@ if [ "$Wdir" == "$HOME" ]; then
EXPOSE 80 EXPOSE 80
EXPOSE 6080 EXPOSE 6901
EXPOSE 3787
EOF EOF
fi fi
@ -275,6 +277,7 @@ fi
/bin/cp -f $DIR/$hostnames_get $Wdir/$hostnames_get /bin/cp -f $DIR/$hostnames_get $Wdir/$hostnames_get
/bin/cp -f $DIR/ROOT_PASSWORD $Wdir/ROOT_PASSWORD /bin/cp -f $DIR/ROOT_PASSWORD $Wdir/ROOT_PASSWORD
/bin/cp -rf $DIR/.vimrc $Wdir/.vimrc /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 /bin/cp -rf $DIR/install-vim-plugin.sh $Wdir/install-vim-plugin.sh
@ -295,15 +298,14 @@ services:
user: root user: root
#entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] #entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]
ports: ports:
- "\${R_PORT1}:6080" - "\${R_PORT1}:6901"
# - "\${R_PORT2}:3080" - "\${R_PORT2}:3787"
networks: networks:
- ${HYBRID_NETWORK} - ${HYBRID_NETWORK}
volumes: volumes:
- $Wdir/project:/home/docker/project - $Wdir/project:/home/docker/project
#- $Wdir/project/package.json:/home/docker/project/package.json - $Wdir/$bootstrap:/usr/bin/$bootstrap
#- $Wdir/project/config.default.js:/home/docker/project/config.js - $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd
#- $Wdir/$bootstrap:/usr/bin/$bootstrap
# workerservice: # workerservice:

Loading…
Cancel
Save