NOTICKET: Setup
This commit is contained in:
parent
0ef8673027
commit
e1f2b814b0
1 changed files with 10 additions and 3 deletions
|
@ -2,9 +2,16 @@ FROM registry.opensuse.org/opensuse/leap:15.5
|
|||
|
||||
RUN zypper -n install sudo nodejs20
|
||||
|
||||
RUN useradd --uid 1001 runner
|
||||
RUN usermod -aG wheel runner
|
||||
RUN echo "%wheel ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers
|
||||
RUN groupadd -g 1001 "runner" \
|
||||
&& groupadd -g 1000 "runneradmin" \
|
||||
&& 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
|
||||
USER runner
|
Loading…
Reference in a new issue