Skip to content

Commit

Permalink
User ENV auf ARG umgestellt
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Oct 16, 2023
1 parent a963fe8 commit 2b23a2c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ci/Dockerfile.bullseye.test_install_unified.armv7
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ ENV TEST_USER_GROUP=test

RUN groupadd --gid 1002 $TEST_USER_GROUP

ENV USER_PI=pi
ENV USER_PI_GROUP=$USER_PI
ARG USER_PI=pi
ARG USER_PI_GROUP=$USER_PI
RUN groupadd --gid 1000 $USER_PI_GROUP \
&& useradd -u 1000 -g $USER_PI_GROUP -G sudo,$TEST_USER_PI_GROUP -d /home/$USER_PI -m -s /bin/bash -p '$1$iV7TOwOe$6ojkJQXyEA9bHd/SqNLNj0' $USER_PI \
&& echo "$USER_PI ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER_PI

ENV USER_HANS=hans
ENV USER_HANS_GROUP=wurst
RUN groupadd --gid 1001 $USER_HANS_GROUP \
&& useradd -u 1001 -g $USER_HANS_GROUP -G sudo,$TEST_USER_HANS_GROUP -d /home/$USER_HANS -m -s /bin/bash -p '$1$iV7TOwOe$6ojkJQXyEA9bHd/SqNLNj0' $USER_HANS \
&& echo "$USER_HANS ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER_HANS
ARG USER_ALT=hans
ARG USER_ALT_GROUP=wurst
RUN groupadd --gid 1001 $USER_ALT_GROUP \
&& useradd -u 1001 -g $USER_ALT_GROUP -G sudo,$TEST_USER_HANS_GROUP -d /home/$USER_ALT -m -s /bin/bash -p '$1$iV7TOwOe$6ojkJQXyEA9bHd/SqNLNj0' $USER_ALT \
&& echo "$USER_ALT ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER_ALT


FROM user as test
Expand Down

0 comments on commit 2b23a2c

Please sign in to comment.