aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-03-23 10:03:43 -0700
committerGravatar MarkKoz <[email protected]>2020-03-23 10:32:54 -0700
commit7a212edd8357d24e2dd88bc455418aaa895bc3c8 (patch)
tree5eec189d41ec7a606c246709ccd5fb3083778461 /config
parentMerge pull request #68 from python-discord/feat/doc/57/docker-run-cmd (diff)
Move snekbox.cfg to a config directory
There will be more config files to come so it's cleaner to have them together than littering the root directory with more files.
Diffstat (limited to 'config')
-rw-r--r--config/snekbox.cfg118
1 files changed, 118 insertions, 0 deletions
diff --git a/config/snekbox.cfg b/config/snekbox.cfg
new file mode 100644
index 0000000..38f3ade
--- /dev/null
+++ b/config/snekbox.cfg
@@ -0,0 +1,118 @@
+name: "snekbox"
+description: "Execute Python"
+
+mode: ONCE
+hostname: "snekbox"
+cwd: "/snekbox"
+
+time_limit: 6
+
+keep_env: false
+envar: "LANG=en_US.UTF-8"
+envar: "OMP_NUM_THREADS=1"
+envar: "OPENBLAS_NUM_THREADS=1"
+envar: "MKL_NUM_THREADS=1"
+envar: "VECLIB_MAXIMUM_THREADS=1"
+envar: "NUMEXPR_NUM_THREADS=1"
+
+keep_caps: false
+
+rlimit_as: 700
+
+clone_newnet: true
+clone_newuser: true
+clone_newns: true
+clone_newpid: true
+clone_newipc: true
+clone_newuts: true
+clone_newcgroup: true
+
+uidmap {
+ inside_id: "65534"
+ outside_id: "65534"
+}
+
+gidmap {
+ inside_id: "65534"
+ outside_id: "65534"
+}
+
+mount_proc: false
+
+mount {
+ src: "/etc/ld.so.cache"
+ dst: "/etc/ld.so.cache"
+ is_bind: true
+ rw: false
+}
+
+mount {
+ src: "/lib"
+ dst: "/lib"
+ is_bind: true
+ rw: false
+}
+
+mount {
+ src: "/lib64"
+ dst: "/lib64"
+ is_bind: true
+ rw: false
+}
+
+mount {
+ src: "/snekbox"
+ dst: "/snekbox"
+ is_bind: true
+ rw: false
+}
+
+mount {
+ src: "/usr/lib"
+ dst: "/usr/lib"
+ is_bind: true
+ rw: false
+}
+
+mount {
+ src: "/usr/local/lib"
+ dst: "/usr/local/lib"
+ is_bind: true
+ rw: false
+}
+
+mount {
+ src: "/usr/local/bin/python"
+ dst: "/usr/local/bin/python"
+ is_bind: true
+ rw: false
+}
+
+mount {
+ src: "/usr/local/bin/python3"
+ dst: "/usr/local/bin/python3"
+ is_bind: true
+ rw: false
+}
+
+mount {
+ src: "/usr/local/bin/python3.8"
+ dst: "/usr/local/bin/python3.8"
+ is_bind: true
+ rw: false
+}
+
+cgroup_mem_max: 52428800
+cgroup_mem_mount: "/sys/fs/cgroup/memory"
+cgroup_mem_parent: "NSJAIL"
+
+cgroup_pids_max: 1
+cgroup_pids_mount: "/sys/fs/cgroup/pids"
+cgroup_pids_parent: "NSJAIL"
+
+iface_no_lo: true
+
+exec_bin {
+ path: "/usr/local/bin/python"
+ arg: "-Iqu"
+}