Update Dockerfile

This commit is contained in:
B. Ma 2024-02-11 20:03:58 +08:00 committed by GitHub
parent 39557f1354
commit 4b607d6245
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@ LABEL org.opencontainers.image.source="https://github.com/ClusterCockpit/cc-dock
ARG SLURM_TAG=slurm-21-08-6-1 ARG SLURM_TAG=slurm-21-08-6-1
ARG GOSU_VERSION=1.11 ARG GOSU_VERSION=1.11
ARG SLURM_PATH=/srv ARG SLURM_PATH=/opt
RUN set -ex \ RUN set -ex \
&& yum makecache \ && yum makecache \
@ -55,7 +55,7 @@ RUN set -ex \
&& chmod +x /usr/local/bin/gosu \ && chmod +x /usr/local/bin/gosu \
&& gosu nobody true && gosu nobody true
WORKDIR /srv WORKDIR /opt
RUN set -x \ RUN set -x \
&& git clone https://gitlab.hrz.tu-chemnitz.de/pika/pika-packages.git \ && git clone https://gitlab.hrz.tu-chemnitz.de/pika/pika-packages.git \
@ -70,7 +70,7 @@ RUN set -x \
&& install -D -m644 etc/slurmdbd.conf.example /etc/slurm/slurmdbd.conf.example \ && install -D -m644 etc/slurmdbd.conf.example /etc/slurm/slurmdbd.conf.example \
&& install -D -m644 contribs/slurm_completion_help/slurm_completion.sh /etc/profile.d/slurm_completion.sh \ && install -D -m644 contribs/slurm_completion_help/slurm_completion.sh /etc/profile.d/slurm_completion.sh \
&& popd \ && popd \
&& cp -r slurm /srv \ && cp -r slurm /opt \
&& groupadd -r --gid=990 slurm \ && groupadd -r --gid=990 slurm \
&& useradd -r -g slurm --uid=990 slurm \ && useradd -r -g slurm --uid=990 slurm \
&& mkdir /etc/sysconfig/slurm \ && mkdir /etc/sysconfig/slurm \
@ -92,8 +92,8 @@ RUN set -x \
&& chown -R slurm:slurm /var/*/slurm* \ && chown -R slurm:slurm /var/*/slurm* \
&& /sbin/create-munge-key && /sbin/create-munge-key
COPY slurm-prep-pika_v4.c /srv/slurm-prep-pika_v4.c COPY slurm-prep-pika_v4.c /opt/slurm-prep-pika_v4.c
COPY makefile /srv/makefile COPY makefile /opt/makefile
COPY slurm.conf /etc/slurm/slurm.conf COPY slurm.conf /etc/slurm/slurm.conf
COPY slurmdbd.conf /etc/slurm/slurmdbd.conf COPY slurmdbd.conf /etc/slurm/slurmdbd.conf