NOTICKET: Setup

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

View file

@ -2,9 +2,16 @@ FROM registry.opensuse.org/opensuse/leap:15.5
RUN zypper -n install sudo nodejs20 RUN zypper -n install sudo nodejs20
RUN useradd --uid 1001 runner RUN groupadd -g 1001 "runner" \
RUN usermod -aG wheel runner && groupadd -g 1000 "runneradmin" \
RUN echo "%wheel ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers && 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