aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-06-06 16:54:33 -0700
committerGravatar MarkKoz <[email protected]>2019-06-22 13:36:38 -0700
commit2c843101843b975ece546b8921d53b3dd4e6974d (patch)
treea3c56d081cc9b541d35662af26e80f7b2fbc02b6 /docker
parentAdd NsJail alias and switch to ash (diff)
Create shell script for building a dev image and running a shell
* Put scripts in a new scripts folder
Diffstat (limited to 'docker')
-rw-r--r--docker/.profile25
1 files changed, 0 insertions, 25 deletions
diff --git a/docker/.profile b/docker/.profile
deleted file mode 100644
index 415e4f6..0000000
--- a/docker/.profile
+++ /dev/null
@@ -1,25 +0,0 @@
-nsjpy() {
- local nsj_args=""
- while [ "$#" -gt 1 ]; do
- nsj_args="${nsj_args:+${nsj_args} }$1"
- shift
- done
-
- mkdir -p /sys/fs/cgroup/pids/NSJAIL
- mkdir -p /sys/fs/cgroup/memory/NSJAIL
- nsjail \
- -Mo \
- --rlimit_as 700 \
- --chroot / \
- -E LANG=en_US.UTF-8 \
- -R/usr -R/lib -R/lib64 \
- --user nobody \
- --group nogroup \
- --time_limit 2 \
- --disable_proc \
- --iface_no_lo \
- --cgroup_pids_max=1 \
- --cgroup_mem_max=52428800 \
- $nsj_args -- \
- /snekbox/.venv/bin/python3 -Iq -c "$@"
-}