Browse Source

xelatex-base

master
zeus 1 year ago
parent
commit
5ea68f79b4
  1. 41
      install/usr/share/swarmlab.io/sec/swarmlab-sec

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

@ -152,12 +152,20 @@ if [ -d "$Wdir/project" ]; then
COPY $hostnames /usr/bin COPY $hostnames /usr/bin
COPY install-vim-plugin.sh . COPY install-vim-plugin.sh .
RUN export DEBIAN_FRONTEND=noninteractive \ ENV USER=docker
&& addgroup -S docker && adduser -S docker -G docker \ ENV GROUP_NAME=docker
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ ENV UID=12345
&& mkdir -p /home/docker/project \ ENV GID=23456
&& echo "docker:docker" | chpasswd \
&& chown -R \${USER1}:\${USER1} \${SSHDIR} RUN export DEBIAN_FRONTEND=noninteractive \
&& addgroup -g $GID $GROUP_NAME \
&& adduser \
--disabled-password \
--gecos "" \
--home "/home/docker" \
--ingroup "$GROUP_NAME" \
--uid "$UID" \
"$USER"
CMD ["tail","-f","/dev/null"] CMD ["tail","-f","/dev/null"]
@ -219,13 +227,20 @@ if [ "$Wdir" == "$HOME" ]; then
COPY $hostnames /usr/bin COPY $hostnames /usr/bin
COPY install-vim-plugin.sh . COPY install-vim-plugin.sh .
RUN export DEBIAN_FRONTEND=noninteractive \ ENV USER=docker
&& addgroup -S docker && adduser -S docker -G docker \ ENV GROUP_NAME=docker
&& echo 'root:$ROOT_PASSWORD' | chpasswd \ ENV UID=12345
&& mkdir -p /home/docker/project \ ENV GID=23456
&& echo "docker:docker" | chpasswd \
&& chown -R \${USER1}:\${USER1} \${SSHDIR} RUN export DEBIAN_FRONTEND=noninteractive \
&& addgroup -g $GID $GROUP_NAME \
&& adduser \
--disabled-password \
--gecos "" \
--home "/home/docker" \
--ingroup "$GROUP_NAME" \
--uid "$UID" \
"$USER"
CMD ["tail","-f","/dev/null"] CMD ["tail","-f","/dev/null"]

Loading…
Cancel
Save