-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (32 loc) · 1.34 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
FROM stevenjswanson/cse142l-swanson-dev:latest
LABEL org.opencontainers.image.source="https://github.com/NVSL/cfiddle-slurm" \
org.opencontainers.image.title="cfiddle-slurm-cluster" \
org.opencontainers.image.description="CFiddle + Slurm Docker cluster on Ubuntu" \
org.label-schema.docker.cmd="docker-compose up -d" \
maintainer="Steven Swanson"
USER root
RUN mkdir /slurm
WORKDIR /slurm
COPY SLURM_TAG ./
COPY IMAGE_TAG ./
COPY slurm.conf ./
COPY slurmdbd.conf ./
COPY ./install_slurm.sh ./
RUN ./install_slurm.sh
COPY . /cse142L/cfiddle-slurm
RUN (cd /cse142L/cfiddle-slurm; /opt/conda/bin/pip install -e .)
RUN (cd /cse142L/cfiddle-slurm/delegate-function; /opt/conda/bin/pip install -e .)
RUN ls /opt/conda/lib/python3.10/site-packages/cfiddle*
#COPY ./install_cfiddle.sh ./
#RUN ./install_cfiddle.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
COPY cfiddle_sudoers /etc/sudoers.d
RUN apt-get install -y openssh-server
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN mkdir -p /cfiddle_scratch
RUN chmod a+rwx /cfiddle_scratch
ENTRYPOINT ["/opt/conda/bin/cfiddle_with_env.sh", "/usr/local/bin/docker-entrypoint.sh"]
CMD ["slurmdbd"]