From bda50a9a1d80e1d8dc4ed1972696bbaa74ee0c1b Mon Sep 17 00:00:00 2001 From: Stefano Alberto Russo <stefano.russo@gmail.com> Date: Wed, 1 Dec 2021 19:03:07 +0100 Subject: [PATCH] Moved to 1000:1000 ID for metauser user. --- X11Web/Dockerfile | 3 ++- base/Dockerfile | 13 ++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/X11Web/Dockerfile b/X11Web/Dockerfile index 95d75bb..7d58cca 100644 --- a/X11Web/Dockerfile +++ b/X11Web/Dockerfile @@ -8,7 +8,8 @@ USER root # Supervisord #------------------------ -# In this container we need to use supervisord as we have two servoces (VNC and noVNC) +# In this container we need to use supervisord as we have two services (VNC and noVNC) +RUN apt-get install supervisor -y # Supervisord conf COPY files/supervisord.conf /etc/supervisor/ diff --git a/base/Dockerfile b/base/Dockerfile index f79ffb4..95de2fc 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -12,18 +12,21 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt-get update # Utilities -RUN apt-get install -y nano telnet unzip wget supervisor build-essential python-dev git-core openjdk-8-jre +RUN apt-get install -y nano telnet unzip wget git-core +# Change APT user to allow some container runtimes properly work (i.e. Podman) +RUN groupadd -g 600 _apt +RUN usermod -g 600 _apt #------------------------ # "Meta" user #------------------------ -# Add group. We chose GID 65527 to try avoiding conflicts. -RUN groupadd -g 65527 metauser +# Add group. We chose GID 1000 as default. +RUN groupadd -g 1000 metauser -# Add user. We chose UID 65527 to try avoiding conflicts. -RUN useradd metauser -d /home/metauser -u 65527 -g 65527 -m -s /bin/bash +# Add user. We chose UID 1000 as default +RUN useradd metauser -d /home/metauser -u 1000 -g 1000 -m -s /bin/bash # Add metuaser user to sudoers RUN adduser metauser sudo -- GitLab