From fd4d68615fbf6c72e62687dcbe93ec23cc842e46 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 20 Nov 2019 14:54:09 +0100 Subject: [PATCH] ci: Add sudo support for default Fedora docker user --- .gitlab-ci/fedora.Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/fedora.Dockerfile b/.gitlab-ci/fedora.Dockerfile index 5b01c93ee..f3319a20e 100644 --- a/.gitlab-ci/fedora.Dockerfile +++ b/.gitlab-ci/fedora.Dockerfile @@ -57,9 +57,12 @@ RUN dnf -y install \ RUN pip3 install meson==0.49.2 +# Enable sudo for wheel users +RUN sed -i -e 's/# %wheel/%wheel/' -e '0,/%wheel/{s/%wheel/# %wheel/}' /etc/sudoers + ARG HOST_USER_ID=5555 ENV HOST_USER_ID ${HOST_USER_ID} -RUN useradd -u $HOST_USER_ID -ms /bin/bash user +RUN useradd -u $HOST_USER_ID -G wheel -ms /bin/bash user USER user WORKDIR /home/user