From c1dd5c7d4671e55da6f8730525833653a25013a2 Mon Sep 17 00:00:00 2001 From: Tom Herold Date: Thu, 10 Oct 2024 14:37:04 +0200 Subject: [PATCH] replace poetry with UV in slurm-docker-cluster docker image --- slurm-docker-cluster/Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/slurm-docker-cluster/Dockerfile b/slurm-docker-cluster/Dockerfile index 99baa13..f5dc3fd 100644 --- a/slurm-docker-cluster/Dockerfile +++ b/slurm-docker-cluster/Dockerfile @@ -12,6 +12,8 @@ LABEL org.opencontainers.image.source="https://github.com/giovtorres/slurm-docke ARG SLURM_TAG=slurm-22-05-9-1 ARG GOSU_VERSION=1.11 +COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv + RUN set -ex \ && dnf makecache \ && dnf -y update \ @@ -43,10 +45,7 @@ RUN set -ex \ && rm -rf /var/cache/yum \ && ln -s /usr/bin/python3 /usr/bin/python -RUN python3 -m pip install --upgrade pip -RUN pip3 install Cython nose -RUN python3 -m pip install -U pytest RUN set -ex \ && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" \ @@ -104,8 +103,6 @@ RUN chmod 600 /etc/slurm/slurmdbd.conf COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh -RUN pip3 install poetry - ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] CMD ["slurmdbd"]