Browse Source

ttyd

master
zeus 3 years ago
parent
commit
3de0760bc3
  1. BIN
      install/usr/share/swarmlab.io/sec/bin/ttyd.x86_64
  2. 1
      install/usr/share/swarmlab.io/sec/sec_bootstrap
  3. 6
      install/usr/share/swarmlab.io/sec/swarmlab-sec

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

Binary file not shown.

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

@ -48,6 +48,7 @@ case $ROLE in
#firefox #firefox
# /root/start-nginx.sh # /root/start-nginx.sh
# Start ssh server # Start ssh server
ttyd -p 3787 bash &
cd /opt/etherpad-lite cd /opt/etherpad-lite
node src/node/server.js node src/node/server.js
tail -f /dev/null tail -f /dev/null

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

@ -170,6 +170,7 @@ if [ -d "$Wdir/project" ]; then
COPY .vimrc /home/docker COPY .vimrc /home/docker
EXPOSE 9001 EXPOSE 9001
EXPOSE 3787
USER docker USER docker
EOF EOF
fi fi
@ -250,6 +251,7 @@ if [ "$Wdir" == "$HOME" ]; then
COPY .vimrc /home/docker COPY .vimrc /home/docker
EXPOSE 9001 EXPOSE 9001
EXPOSE 3787
USER docker USER docker
EOF EOF
fi fi
@ -267,6 +269,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
@ -289,12 +292,13 @@ services:
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}:9001" - "\${R_PORT1}:9001"
# - "\${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/$bootstrap:/usr/bin/$bootstrap - $Wdir/$bootstrap:/usr/bin/$bootstrap
- $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd
# workerservice: # workerservice:

Loading…
Cancel
Save