File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM nvcr.io/partners/matlab:r2019b
2
+
3
+ ENV PYTHONUNBUFFERED=1 \
4
+ LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64" \
5
+ PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH \
6
+ LIBRARY_PATH="/usr/local/cuda/lib64/stubs" \
7
+ LANG=C.UTF-8
8
+
9
+ # Backend.AI specifics
10
+ COPY policy.yml /etc/backend.ai/jail/policy.yml
11
+ LABEL ai.backend.kernelspec="1" \
12
+ ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
13
+ ai.backend.features="batch uid-match" \
14
+ ai.backend.accelerators="cuda" \
15
+ ai.backend.resource.min.cpu="1" \
16
+ ai.backend.resource.min.mem="1g" \
17
+ ai.backend.resource.preferred.shmem="512m" \
18
+ ai.backend.resource.min.cuda.device=1 \
19
+ ai.backend.resource.min.cuda.shares=0.1 \
20
+ ai.backend.base-distro="ubuntu16.04" \
21
+ ai.backend.runtime-type="matlab" \
22
+ ai.backend.runtime-path="/usr/local/bin/matlab" \
23
+ ai.backend.service-ports="vnc:tcp:5901,matlab:http:6080"
24
+
25
+ WORKDIR /home/work
26
+ # vim: ft=dockerfile
Original file line number Diff line number Diff line change
1
+ whitelist_paths :
2
+ OP_OPEN : ["*"]
3
+ OP_ACCESS : ["*"]
4
+ OP_EXEC : ["*"]
5
+ OP_STAT : ["*"]
6
+ OP_CHMOD : ["/home/work/*", "/tmp/*"]
7
+ exec_allowance : -1
8
+ fork_allowance : -1
9
+ max_child_procs : 256
10
+ extra_envs : []
11
+ preserved_env_keys : [
12
+ " HOME" , "PATH", "LANG",
13
+ " PYENV_ROOT" , "PYTHONPATH",
14
+ " PYTHONUNBUFFERED" ,
15
+ " MPLCONFIGDIR" ,
16
+ " OPENBLAS_NUM_THREADS" ,
17
+ " OMP_NUM_THREADS" ,
18
+ " NPROC" ,
19
+ " LD_LIBRARY_PATH" ,
20
+ " LD_PRELOAD" ,
21
+ ]
22
+
23
+ diff_to_default : true
24
+
25
+ # Following syscalls are blindly allowed.
26
+ # IMPORTANT: ptrace MUST NOT be included!
27
+ allowed_syscalls :
You can’t perform that action at this time.
0 commit comments