Browse Source

add ttyd

master
zeus 3 years ago
parent
commit
058212b57a
  1. BIN
      install/usr/share/swarmlab.io/sec/bin/ttyd.x86_64
  2. 1
      install/usr/share/swarmlab.io/sec/sec_bootstrap
  3. 5
      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
#tail -f /dev/null #tail -f /dev/null
#/root/start-nginx.sh #/root/start-nginx.sh
#python3 -m gns3server --port 8001 #python3 -m gns3server --port 8001
ttyd -p 3787 bash &
snmpsimd.py --agent-udpv4-endpoint=0.0.0.0:161 --process-user=snmpsim --process-group=nogroup $EXTRA_FLAGS snmpsimd.py --agent-udpv4-endpoint=0.0.0.0:161 --process-user=snmpsim --process-group=nogroup $EXTRA_FLAGS
tail -f /dev/null tail -f /dev/null
# Start ssh server # Start ssh server

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

@ -169,6 +169,7 @@ if [ -d "$Wdir/project" ]; then
&& chown -R \${USER1}:\${USER1} \${SSHDIR} && chown -R \${USER1}:\${USER1} \${SSHDIR}
COPY .vimrc /home/docker COPY .vimrc /home/docker
EXPOSE 3787
EOF EOF
fi fi
else else
@ -249,6 +250,7 @@ if [ "$Wdir" == "$HOME" ]; then
&& chown -R \${USER1}:\${USER1} \${SSHDIR} && chown -R \${USER1}:\${USER1} \${SSHDIR}
COPY .vimrc /home/docker COPY .vimrc /home/docker
EXPOSE 3787
EOF EOF
fi fi
@ -264,6 +266,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
@ -285,12 +288,14 @@ 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}:161/udp" - "\${R_PORT1}:161/udp"
- "\${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/project/data:/home/docker/project/data - $Wdir/project/data:/home/docker/project/data
- $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd
# workerservice: # workerservice:

Loading…
Cancel
Save