[librsvg-oci-images/alatiera/ci-cleanups: 2/4] fedora: build image with a user namnespace
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg-oci-images/alatiera/ci-cleanups: 2/4] fedora: build image with a user namnespace
- Date: Sat, 26 Sep 2020 07:27:29 +0000 (UTC)
commit b3afbb344a28f2aad78e6cdab7f39edf525bafe5
Author: Jordan Petridis <jordan centricular com>
Date: Sat Sep 26 10:21:56 2020 +0300
fedora: build image with a user namnespace
similar to c19a8634d51985288c77ad491693f4c62bba6f95
fedora/latest | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/fedora/latest b/fedora/latest
index c3499ff..bdcf055 100644
--- a/fedora/latest
+++ b/fedora/latest
@@ -8,3 +8,15 @@ RUN dnf upgrade -y && \
libxml2-devel libcroco-devel cairo-devel pango-devel \
gettext-devel && \
dnf clean all
+
+# 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]