Skip to content

Commit

Permalink
logging honzugefuegt
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Oct 15, 2023
1 parent 54a1bd6 commit b0a9fc8
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions ci/Dockerfile.bullseye.test_target_unified_install.armv7
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,27 @@ FROM base as user

# ENV USER=$USER_NAME

ENV TEST_USER_GROUP=test

RUN groupadd --gid 1002 $TEST_USER_GROUP

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

RUN export USER=hans &&\
export USER_GROUP=wurst &&\
echo "USER: $USER" &&\
echo "USER_GROUP: $USER_GROUP" &&\
groupadd --gid 1001 $USER_GROUP &&\
useradd -u 1001 -g 1001 -G sudo -d /home/$USER -m -s /bin/bash -p '$1$iV7TOwOe$6ojkJQXyEA9bHd/SqNLNj0' $USER &&\
echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER
useradd -u 1001 -g $USER_GROUP -G sudo,$TEST_USER_GROUP -d /home/$USER -m -s /bin/bash -p '$1$iV7TOwOe$6ojkJQXyEA9bHd/SqNLNj0' $USER &&\
echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER &&\
id $USER


FROM user as test
Expand All @@ -58,9 +68,10 @@ ARG GIT_URL

ENV GIT_BRANCH=$GIT_BRANCH GIT_URL=$GIT_URL

RUN echo "TEST_USER_GROUP: $TEST_USER_GROUP"
# Define needed files for installation test
COPY --chown=root:$USER_GROUP --chmod=770 scripts/installscripts/tests/*.sh /tests/
COPY --chown=root:$USER_GROUP --chmod=770 scripts/installscripts/buster-install-default.sh /
COPY --chown=root:$TEST_USER_GROUP --chmod=770 scripts/installscripts/tests/*.sh /tests/
COPY --chown=root:$TEST_USER_GROUP --chmod=770 scripts/installscripts/buster-install-default.sh /

WORKDIR /tests

Expand Down

0 comments on commit b0a9fc8

Please sign in to comment.