[glib/wip/hadess/add-sudo-fedora-docker: 3/3] ci: Add sudo support for default Fedora docker user
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/hadess/add-sudo-fedora-docker: 3/3] ci: Add sudo support for default Fedora docker user
- Date: Wed, 20 Nov 2019 14:00:17 +0000 (UTC)
commit 31179f277a7dad42b8b341773ffff42acfc26beb
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 20 14:54:09 2019 +0100
ci: Add sudo support for default Fedora docker user
.gitlab-ci/fedora.Dockerfile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci/fedora.Dockerfile b/.gitlab-ci/fedora.Dockerfile
index a59879e07..fac22c9ba 100644
--- a/.gitlab-ci/fedora.Dockerfile
+++ b/.gitlab-ci/fedora.Dockerfile
@@ -47,6 +47,7 @@ RUN dnf -y install \
python3-pip \
python3-wheel \
shared-mime-info \
+ sudo \
systemtap-sdt-devel \
unzip \
valgrind \
@@ -57,9 +58,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]