Commit bda50a9a authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Moved to 1000:1000 ID for metauser user.

parent aa74dee2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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/
+8 −5
Original line number Diff line number Diff line
@@ -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