Browse Source

remove registry

master
zeus 4 years ago
parent
commit
b046ec5a6e
  1. 32
      install/usr/share/swarmlab.io/sec/swarmlab-sec

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

@ -227,38 +227,6 @@ if [ "$Wdir" == "$HOME" ]; then
WORKDIR /home/docker/project
USER docker
EOF
else
echo ">>> Load Local "
cat << EOF > $Wdir/Dockerfile
FROM localhost:5000/$IMAGE_local
#
USER root
COPY $bootstrap /usr/bin
COPY $hostnames_get /usr/bin
COPY $hostnames /usr/bin
COPY install-vim-plugin.sh .
COPY .vimrc /home/docker
ENV NOTVISIBLE "in users profile"
ENV USER1 docker
ENV USER_HOME /home/docker
ENV SSHDIR \${USER_HOME}/.ssh
COPY ssh/ \${SSHDIR}/
RUN mkdir -p /var/run/sshd \
&& echo 'root:$ROOT_PASSWORD' | chpasswd \
&& echo "export VISIBLE=now" >> /etc/profile \
&& mkdir -p /etc/opt \
&& mkdir -p /home/docker/project \
&& echo "docker:docker" | chpasswd \
&& echo "StrictHostKeyChecking no" > \${SSHDIR}/config \
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \
&& chmod -R 600 \${SSHDIR}/* \
&& chown -R \${USER1}:\${USER1} \${SSHDIR}
COPY .vimrc /home/docker
WORKDIR /home/docker/project
USER docker
EOF
fi

Loading…
Cancel
Save