Skip to content
Snippets Groups Projects
Commit bda50a9a authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Moved to 1000:1000 ID for metauser user.

parent aa74dee2
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,8 @@ USER root ...@@ -8,7 +8,8 @@ USER root
# Supervisord # 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 # Supervisord conf
COPY files/supervisord.conf /etc/supervisor/ COPY files/supervisord.conf /etc/supervisor/
......
...@@ -12,18 +12,21 @@ ENV DEBIAN_FRONTEND noninteractive ...@@ -12,18 +12,21 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update RUN apt-get update
# Utilities # 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 # "Meta" user
#------------------------ #------------------------
# Add group. We chose GID 65527 to try avoiding conflicts. # Add group. We chose GID 1000 as default.
RUN groupadd -g 65527 metauser RUN groupadd -g 1000 metauser
# Add user. We chose UID 65527 to try avoiding conflicts. # Add user. We chose UID 1000 as default
RUN useradd metauser -d /home/metauser -u 65527 -g 65527 -m -s /bin/bash RUN useradd metauser -d /home/metauser -u 1000 -g 1000 -m -s /bin/bash
# Add metuaser user to sudoers # Add metuaser user to sudoers
RUN adduser metauser sudo RUN adduser metauser sudo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment