Last active
August 21, 2023 04:51
-
-
Save stevenjswanson/b819ab3a68cc7d9aea72099263ef10bd to your computer and use it in GitHub Desktop.
Dockerized slurm Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:jammy | |
USER root | |
RUN apt-get update | |
RUN apt-get install -y host iputils-ping sudo gosu | |
RUN mkdir /slurm | |
RUN mkdir /build | |
WORKDIR /slurm | |
COPY ./SLURM_TAG ./ | |
COPY ./IMAGE_TAG ./ | |
COPY ./slurm.conf ./ | |
COPY ./slurmdbd.conf ./ | |
COPY ./install_slurm.sh ./ | |
RUN ./install_slurm.sh | |
RUN groupadd cfiddlers | |
RUN groupadd --gid 1001 docker_users | |
RUN useradd -g cfiddlers -p fiddle -G docker_users -s /usr/bin/bash test_fiddler | |
RUN useradd -r -s /usr/sbin/nologin -u 7000 -G docker_users -p fiddle cfiddle | |
HEALTHCHECK NONE | |
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh | |
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] | |
CMD ["slurmdbd"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment