NOTICKET: Setup
All checks were successful
CI / build (push) Successful in 1m36s

This commit is contained in:
Snoweuph 2024-02-10 22:24:18 +01:00
parent e1f2b814b0
commit 0c233ec8df
Signed by: Snoweuph
GPG key ID: A494330694B208EF

View file

@ -2,16 +2,8 @@ FROM registry.opensuse.org/opensuse/leap:15.5
RUN zypper -n install sudo nodejs20 RUN zypper -n install sudo nodejs20
RUN groupadd -g 1001 "runner" \ RUN useradd -u 1001 runner
&& groupadd -g 1000 "runneradmin" \ RUN echo "runner ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/runner
&& useradd -u 1001 -g "runner" -G sudo -m -s /bin/bash "runner" \
&& useradd -u 1000 -g "runneradmin" -G sudo -m -s /bin/bash "runneradmin" \
&& usermod -aG docker "runner" \
&& usermod -aG docker "runneradmin" \
{ \
echo "runner ALL=(ALL) NOPASSWD: ALL" \
echo "runneradmin ALL=(ALL) NOPASSWD: ALL" \
} | tee -a /etc/sudoers
WORKDIR /home/runner WORKDIR /home/runner
USER runner USER runner