zeus 3 years ago
parent
commit
2966f1965d
  1. 9
      install/usr/share/swarmlab.io/sec/swarmlab-sec

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

@ -171,13 +171,15 @@ if [ -d "$Wdir/project" ]; then
&& echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \
&& chmod -R 600 \${SSHDIR}/* \ && chmod -R 600 \${SSHDIR}/* \
&& chown -R \${USER1}:\${USER1} \${SSHDIR} && chown -R \${USER1}:\${USER1} \${SSHDIR} \
&& chown -R \${USER1}:\${USER1} \${USER_HOME}
COPY .vimrc /home/docker COPY .vimrc /home/docker
EXPOSE 80 EXPOSE 80
EXPOSE 6901 EXPOSE 6901
EXPOSE 8787
EXPOSE 3787 EXPOSE 3787
EOF EOF
fi fi
@ -254,7 +256,8 @@ if [ "$Wdir" == "$HOME" ]; then
&& echo "StrictHostKeyChecking no" > \${SSHDIR}/config \ && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \
&& chmod -R 600 \${SSHDIR}/* \ && chmod -R 600 \${SSHDIR}/* \
&& chown -R \${USER1}:\${USER1} \${SSHDIR} && chown -R \${USER1}:\${USER1} \${SSHDIR} \
&& chown -R \${USER1}:\${USER1} \${USER_HOME}
COPY .vimrc /home/docker COPY .vimrc /home/docker
@ -262,6 +265,7 @@ if [ "$Wdir" == "$HOME" ]; then
EXPOSE 80 EXPOSE 80
EXPOSE 6901 EXPOSE 6901
EXPOSE 8787
EXPOSE 3787 EXPOSE 3787
EOF EOF
fi fi
@ -300,6 +304,7 @@ services:
ports: ports:
- "\${R_PORT1}:6901" - "\${R_PORT1}:6901"
- "\${R_PORT2}:3787" - "\${R_PORT2}:3787"
- "\${R_PORT3}:8787"
networks: networks:
- ${HYBRID_NETWORK} - ${HYBRID_NETWORK}
volumes: volumes:

Loading…
Cancel
Save