Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace poetry with UV in slurm-docker-cluster docker image #60

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions slurm-docker-cluster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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" \
Expand Down Expand Up @@ -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"]