diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 5bcde00..f54af45 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/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