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

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
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
......@@ -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
#----------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment