aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dev.sh
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-01-10 21:19:44 -0800
committerGravatar MarkKoz <[email protected]>2021-01-10 21:35:26 -0800
commitdab2a0ac4f9e5080865e77048c936ab279e5918d (patch)
treef56df32946f11ed0cde87d924e1653d233257efa /scripts/dev.sh
parentSupport overriding nsjail config values with additional arguments (diff)
Replace nsjpy alias with a Python script
The Python script uses the same underlying code Falcon uses to invoke nsjail. It allows for the omission of redundant shell code that set up cgroups and nsjail args. This is also a step towards removing dependence on shell scripts and thus resolving #73.
Diffstat (limited to 'scripts/dev.sh')
-rwxr-xr-xscripts/dev.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/dev.sh b/scripts/dev.sh
index 3f94874..efbd93a 100755
--- a/scripts/dev.sh
+++ b/scripts/dev.sh
@@ -44,7 +44,6 @@ docker run \
--ipc="none" \
-e PYTHONDONTWRITEBYTECODE=1 \
-e PIPENV_PIPFILE="/snekbox/Pipfile" \
- -e BASH_ENV="${PWD}/scripts/.profile" \
--volume "${PWD}":"${PWD}" \
--workdir "${PWD}"\
--entrypoint /bin/bash \
@@ -52,7 +51,7 @@ docker run \
>/dev/null \
# Execute the given command(s)
-docker exec -it snekbox_test /bin/bash --rcfile "${PWD}/scripts/.profile" "$@"
+docker exec -it snekbox_test /bin/bash "$@"
# Fix ownership of coverage file
# BusyBox doesn't support --reference for chown