Browse Source

slash

master
zeus 3 years ago
parent
commit
8ea0cb7a2f
  1. 6
      install/usr/share/swarmlab.io/sec/swarmlab-sec

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

@ -156,7 +156,7 @@ if [ -d "$Wdir/project" ]; then
RUN export DEBIAN_FRONTEND=noninteractive \ RUN export DEBIAN_FRONTEND=noninteractive \
&& rm -rf /usr/share/doc \ && rm -rf /usr/share/doc \
&& rm -rf /usr/share/man \ && rm -rf /usr/share/man \
&& rm -rf /usr/share/locale \ && rm -rf /usr/share/locale \
&& mkdir -p /var/run/sshd \ && mkdir -p /var/run/sshd \
&& addgroup -S docker && adduser -S docker -G docker \ && addgroup -S docker && adduser -S docker -G docker \
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ && echo 'root:$ROOT_PASSWORD' | chpasswd \
@ -167,7 +167,7 @@ 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}
COPY .vimrc /home/docker COPY .vimrc /home/docker
EXPOSE 3787 EXPOSE 3787
@ -240,7 +240,7 @@ if [ "$Wdir" == "$HOME" ]; then
&& addgroup -S docker && adduser -S docker -G docker \ && addgroup -S docker && adduser -S docker -G docker \
&& rm -rf /usr/share/doc \ && rm -rf /usr/share/doc \
&& rm -rf /usr/share/man \ && rm -rf /usr/share/man \
&& rm -rf /usr/share/locale \ && rm -rf /usr/share/locale \
&& mkdir -p /var/run/sshd \ && mkdir -p /var/run/sshd \
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ && echo 'root:$ROOT_PASSWORD' | chpasswd \
&& echo "export VISIBLE=now" >> /etc/profile \ && echo "export VISIBLE=now" >> /etc/profile \

Loading…
Cancel
Save