Browse Source

add console

master
zeus 3 years ago
parent
commit
50c92f15b7
  1. BIN
      install/usr/share/swarmlab.io/sec/bin/ttyd.x86_64
  2. 1
      install/usr/share/swarmlab.io/sec/sec_bootstrap
  3. 4
      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

@ -46,6 +46,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
# Start ssh server
/usr/sbin/sshd -D
;;

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

@ -345,6 +345,7 @@ fi
/bin/mkdir -p $Wdir/project
/bin/mkdir -p $Wdir/logs
/bin/cp -rf $DIR/project/bin $Wdir/project
/bin/cp -rf $DIR/project/courses $Wdir/project
/bin/cp -f $DIR/project/hello_world.sh $Wdir/project
@ -353,6 +354,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
@ -381,6 +383,7 @@ services:
- ${HYBRID_NETWORK}
volumes:
- $Wdir/project:/project
- $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd
worker:
@ -397,6 +400,7 @@ services:
- ${HYBRID_NETWORK}
volumes:
- $Wdir/project:/project
- $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd
networks:
${HYBRID_NETWORK}:

Loading…
Cancel
Save