File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1- # syntax = docker/dockerfile:1.2.1
21FROM ubuntu:24.04
32
43ENV DEBIAN_FRONTEND=noninteractive
54RUN --mount=type=cache,target=/var/cache/apt \
65 rm -f /etc/apt/apt.conf.d/docker-clean \
7- && apt-get update && apt-get -y install python3-pip slurm-wlm
8- ENV PIP_CACHE_DIR=/tmp/pip-cache
9- RUN --mount=type=cache,target=${PIP_CACHE_DIR} python3 -m pip install ipyparallel pytest-asyncio pytest-cov
6+ && apt-get update && apt-get -y install python3-pip slurm-wlm python3-venv
7+
8+ ENV PIP_CACHE_DIR=/tmp/pip-cache \
9+ VIRTUAL_ENV=/srv/env \
10+ PATH=/srv/env/bin:${PATH}
11+
12+ RUN --mount=type=cache,target=${PIP_CACHE_DIR} \
13+ python3 -m venv $VIRTUAL_ENV \
14+ && $VIRTUAL_ENV/bin/python3 -m pip install ipyparallel pytest-asyncio pytest-cov
1015RUN mkdir /var/spool/slurmctl \
1116 && mkdir /var/spool/slurmd
1217COPY slurm.conf /etc/slurm-llnl/slurm.conf
Original file line number Diff line number Diff line change 1- version : " 2.2"
2-
31services :
42 slurmctld :
53 image : ipp-cluster:slurm
Original file line number Diff line number Diff line change 1- # syntax = docker/dockerfile:1.2.1
21FROM ubuntu:24.04
32RUN --mount=type=cache,target=/var/cache/apt \
43 rm -f /etc/apt/apt.conf.d/docker-clean \
You can’t perform that action at this time.
0 commit comments