-
Notifications
You must be signed in to change notification settings - Fork 0
/
sandbox.Dockerfile
34 lines (24 loc) · 1.01 KB
/
sandbox.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
FROM ubuntu:jammy
#jupyter/scipy-notebook:python-3.10
LABEL org.opencontainers.image.source="https://github.com/NVSL/cfiddle-cluster" \
org.opencontainers.image.title="cfiddle-slurm-cluster-sandbox" \
org.opencontainers.image.description="Example sandbox image to communicate with a slurm cluster for running cfiddle experiments" \
maintainer="Steven Swanson <[email protected]>"
USER root
RUN apt-get update --fix-missing
RUN apt-get install -y host iputils-ping sudo gosu git sudo && apt-get clean
RUN mkdir /slurm
RUN mkdir /build
WORKDIR /slurm
COPY ./config.sh ./
COPY ./install_python.sh ./
RUN ( . ./config.sh; env; ./install_python.sh)
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)
RUN mkdir -p /cfiddle_scratch
RUN chmod a+rwx /cfiddle_scratch
ENTRYPOINT ["/usr/bin/env"]