-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (38 loc) · 1.48 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM ubuntu:jammy
LABEL org.opencontainers.image.source="https://github.com/NVSL/delegate_function" \
org.opencontainers.image.title="cfiddle-cluster" \
org.opencontainers.image.description="Slurm Docker cluster on Ubuntu" \
org.label-schema.docker.cmd="docker-compose up -d" \
maintainer="Steven Swanson"
USER root
RUN mkdir /slurm
WORKDIR /slurm
RUN apt-get update --fix-missing
RUN apt-get install -y host iputils-ping sudo gosu git && apt-get clean
COPY ./config.sh ./
COPY ./install_python.sh ./
RUN ( . ./config.sh; env; ./install_python.sh)
COPY ./slurm.conf ./
COPY ./slurmdbd.conf ./
COPY ./cfiddle ./cfiddle
COPY ./delegate-function ./delegate-function
COPY ./install_cfiddle.sh ./
RUN ( . ./config.sh; ./install_cfiddle.sh )
COPY ./usertools ./usertools
RUN (. ./config.sh; cd usertools; [ -e ./install_usertools.sh ] && ./install_usertools.sh)
COPY ./install_slurm.sh ./
RUN ( . ./config.sh; ./install_slurm.sh)
COPY ./install_docker.sh ./
RUN (. ./config.sh; ./install_docker.sh)
COPY ./create_jovyan.sh ./
RUN (. ./config.sh; ./create_jovyan.sh)
RUN useradd -r -s /usr/sbin/nologin -u 7000 -G docker -p fiddle cfiddle
COPY ./cfiddle_sudoers /etc/sudoers.d/
HEALTHCHECK NONE
#RUN apt-get install -y openssh-server acl
COPY slurm-entrypoint.sh /usr/local/bin/slurm-entrypoint.sh
RUN chmod a+x /usr/local/bin/slurm-entrypoint.sh
RUN mkdir -p /cfiddle_scratch
RUN chmod a+rwx /cfiddle_scratch
ENTRYPOINT ["/usr/local/bin/slurm-entrypoint.sh"]
CMD ["slurmdbd"]