[gtk/ci-installed-tests: 5/7] ci: Enable sudo in the image
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ci-installed-tests: 5/7] ci: Enable sudo in the image
- Date: Sun, 2 Aug 2020 02:15:51 +0000 (UTC)
commit 501b2b43efdba49bee6f995cc0dc39bedef53933
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 1 22:11:07 2020 -0400
ci: Enable sudo in the image
This is needed so we can install what we built.
.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 0ffd354d99..7889720523 100644
--- a/.gitlab-ci/fedora.Dockerfile
+++ b/.gitlab-ci/fedora.Dockerfile
@@ -1,8 +1,11 @@
FROM registry.gitlab.gnome.org/gnome/gtk/fedora-base:v21
+# 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]