[librsvg-oci-images/add-curl-to-debian: 2/2] Build debian:testing with user namespaces and re-enable the build




commit 867390a811bfb5f94c96768082432b0c54c35dcd
Author: Sven Neumann <sven svenfoo org>
Date:   Fri Oct 23 16:00:11 2020 +0200

    Build debian:testing with user namespaces and re-enable the build

 .gitlab-ci.yml |  2 +-
 debian/testing | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c75d9d5..d6b9ede 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -68,7 +68,7 @@ fedora latest:
     changes:
       - 'fedora/*'
 
-.debian testing:
+debian testing:
   extends: '.distro build'
   variables:
     ARCH: "amd64"
diff --git a/debian/testing b/debian/testing
index 0568501..aaae483 100644
--- a/debian/testing
+++ b/debian/testing
@@ -4,3 +4,17 @@ COPY prepare.sh cleanup.sh /root/
 
 RUN /bin/sh /root/prepare.sh && \
     /bin/sh /root/cleanup.sh
+
+ENV SHELL=/bin/bash
+
+# Enable sudo for wheel users
+RUN sed -i -e 's/# %wheel/%wheel/' -e '0,/%wheel/{s/%wheel/# %wheel/}' \
+    /etc/sudoers
+
+ENV HOST_USER_ID 5555
+RUN useradd -u $HOST_USER_ID -G wheel -ms /bin/bash user
+
+USER user
+WORKDIR /home/user
+
+ENV LANG C.UTF-8


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]