Skip to content
Snippets Groups Projects
Verified Commit cd198cd2 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

scripts/Dockerfile: Allow group and user id overwrite

This will help jenkins be able to actually run the scripts.

Refs. swh/infra/sysadm-environment#4524
parent 89c21820
No related branches found
No related tags found
No related merge requests found
# build-deps container to call scripts/generate-frozen-requirements.txt on an
# application (e.g. swh-loader-svn, swh-loader-git, ...)
FROM python:3.10-bullseye
ARG userid=1000
ARG groupid=1000
RUN addgroup --gid 1000 swh && \
useradd --gid 1000 --uid 1000 -m -d /opt/swh swh
RUN addgroup --gid $groupid swh && \
useradd --gid $groupid --uid $userid -m -d /opt/swh swh
# First install the runtime deps of all swh applications
RUN apt-get -y update && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment