Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rosetta
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
Rosetta
Commits
051dbbb1
Commit
051dbbb1
authored
3 years ago
by
Stefano Alberto Russo
Browse files
Options
Downloads
Patches
Plain Diff
Added the "rosetta" user to the registry and standalone computing services.
parent
d8f32f1c
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
services/dregistry/Dockerfile
+18
-0
18 additions, 0 deletions
services/dregistry/Dockerfile
services/standaloneworker/Dockerfile
+22
-1
22 additions, 1 deletion
services/standaloneworker/Dockerfile
with
40 additions
and
1 deletion
services/dregistry/Dockerfile
+
18
−
0
View file @
051dbbb1
FROM
registry:2
RUN
set
-ex
&&
apk
--no-cache
add
sudo
bash
#------------------------
# Rosetta user
#------------------------
# Add group. We chose GID 65527 to try avoiding conflicts.
RUN
addgroup
-g
65527 rosetta
# Add user. We chose UID 65527 to try avoiding conflicts.
RUN
adduser rosetta
-D
-h
/rosetta
-u
65527
-G
rosetta
-s
/bin/bash
# Add rosetta user to sudoers
RUN
adduser rosetta wheel
# Passwordless sudo
RUN
sed
-e
's;^# \(%wheel.*NOPASSWD.*\);\1;g'
-i
/etc/sudoers
\ No newline at end of file
This diff is collapsed.
Click to expand it.
services/standaloneworker/Dockerfile
+
22
−
1
View file @
051dbbb1
...
...
@@ -24,11 +24,32 @@ RUN dnf install -y python wget
# Install iputils (fpr ping) and openssh-clients (for scp)
RUN
dnf
install
-y
iputils openssh-clients
# TODO: Add the rosettta user
# Copy registries.conf to allow insecure access to dregistry
COPY
registries.conf /etc/containers/registries.conf
#------------------------
# Rosetta user
#------------------------
# Add group. We chose GID 65527 to try avoiding conflicts.
RUN
groupadd
-g
65527 rosetta
# Add user. We chose UID 65527 to try avoiding conflicts.
RUN
useradd rosetta
-d
/rosetta
-u
65527
-g
65527
-m
-s
/bin/bash
# Add rosetta user to sudoers
RUN
usermod
-aG
wheel rosetta
# Passwordless sudo
RUN
sed
-e
's;^# \(%wheel.*NOPASSWD.*\);\1;g'
-i
/etc/sudoers
# Authorized keys
RUN
mkdir
/rosetta/.ssh
COPY
keys/id_rsa.pub /rosetta/.ssh/authorized_keys
#----------------------
# Entrypoint
#----------------------
...
...
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