Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SWC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ExaCT
SWC
Commits
bda50a9a
Commit
bda50a9a
authored
3 years ago
by
Stefano Alberto Russo
Browse files
Options
Downloads
Patches
Plain Diff
Moved to 1000:1000 ID for metauser user.
parent
aa74dee2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
X11Web/Dockerfile
+2
-1
2 additions, 1 deletion
X11Web/Dockerfile
base/Dockerfile
+8
-5
8 additions, 5 deletions
base/Dockerfile
with
10 additions
and
6 deletions
X11Web/Dockerfile
+
2
−
1
View file @
bda50a9a
...
@@ -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/
...
...
This diff is collapsed.
Click to expand it.
base/Dockerfile
+
8
−
5
View file @
bda50a9a
...
@@ -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-j
re
RUN
apt-get
install
-y
nano telnet unzip wget
git-co
re
# 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment