File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ FROM debian:bookworm
77ARG SLURM_VERSION="24.05.4"
88ARG SLURM_USER_UID=990
99ARG SLURM_USER_GID=990
10+ ARG SLURMRESTD_USER_UID=65533
11+ ARG SLURMRESTD_USER_GID=65533
1012ARG MYSQL_CONFIG_VERSION="0.8.34"
1113
1214COPY --from=uv /uv /bin/uv
@@ -46,6 +48,9 @@ COPY --chown=slurm:slurm slurmdbd.conf /etc/slurm/slurmdbd.conf
4648RUN chmod 600 /etc/slurm/slurm.conf
4749RUN chmod 600 /etc/slurm/slurmdbd.conf
4850
51+ RUN addgroup --gid="$SLURMRESTD_USER_GID" slurmrestd
52+ RUN adduser --system --uid="$SLURMRESTD_USER_UID" --ingroup slurmrestd slurmrestd
53+
4954COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
5055ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh" ]
5156CMD ["slurmdbd" ]
Original file line number Diff line number Diff line change 4848if [ " $1 " = " slurmrestd" ]
4949then
5050 shift 1
51- exec setpriv --reuid=nobody --regid=nobody --init-groups /usr/sbin/slurmrestd
51+ exec setpriv --reuid=slurmrestd --regid=slurmrestd --init-groups /usr/sbin/slurmrestd " $@ "
5252fi
5353
5454set -x
You can’t perform that action at this time.
0 commit comments