Browse Source

ttyd

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

@ -45,6 +45,7 @@ case $ROLE in
# Auto update default host file in background and dumb all output # Auto update default host file in background and dumb all output
auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 & auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 &
ttyd -p 3787 bash
tail -f /dev/null tail -f /dev/null
#/root/start-nginx.sh #/root/start-nginx.sh
# Start ssh server # Start ssh server

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

@ -171,6 +171,7 @@ if [ -d "$Wdir/project" ]; then
COPY .vimrc /home/docker COPY .vimrc /home/docker
WORKDIR /home/docker/project WORKDIR /home/docker/project
USER docker USER docker
EXPOSE 3787
EOF EOF
fi fi
else else
@ -251,6 +252,7 @@ if [ "$Wdir" == "$HOME" ]; then
COPY .vimrc /home/docker COPY .vimrc /home/docker
WORKDIR /home/docker/project WORKDIR /home/docker/project
USER docker USER docker
EXPOSE 3787
EOF EOF
fi fi
@ -266,6 +268,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/ansible.cfg $Wdir/ /bin/cp -rf $DIR/ansible.cfg $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
@ -286,8 +289,8 @@ services:
- NET_ADMIN - NET_ADMIN
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}:8001" - "\${R_PORT1}:3787"
# - "\${R_PORT2}:3080" # - "\${R_PORT2}:3080"
networks: networks:
- ${HYBRID_NETWORK} - ${HYBRID_NETWORK}
@ -295,6 +298,7 @@ services:
- $Wdir/project:/home/docker/project - $Wdir/project:/home/docker/project
- $Wdir/$bootstrap:/usr/bin/$bootstrap - $Wdir/$bootstrap:/usr/bin/$bootstrap
- $Wdir/ansible.cfg:/etc/ansible/ansible.cfg - $Wdir/ansible.cfg:/etc/ansible/ansible.cfg
- $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd
# workerservice: # workerservice:

Loading…
Cancel
Save