aboutsummaryrefslogtreecommitdiffstats
path: root/Pipfile
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 /Pipfile
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 'Pipfile')
-rw-r--r--Pipfile24
1 files changed, 1 insertions, 23 deletions
diff --git a/Pipfile b/Pipfile
index 492008a..1e9ec67 100644
--- a/Pipfile
+++ b/Pipfile
@@ -40,29 +40,7 @@ snekbox = """
--access-logfile - \
snekbox.api.app
"""
-build-venv-dev = """
- docker build \
- -t pythondiscord/snekbox-venv:dev \
- -f docker/venv.Dockerfile
- --build-arg DEV=1 \
- .
-"""
-devsh = """
- /usr/bin/env sh -c '
- docker run \
- -it \
- --rm \
- --privileged \
- --network host \
- -h pdsnk-dev \
- -e PIPENV_PIPFILE="/snekbox/Pipfile" \
- -e ENV="/snekbox-local/docker/.profile" \
- -v "$(pwd)":/snekbox-local \
- -w "/snekbox-local" \
- --entrypoint /bin/ash \
- pythondiscord/snekbox-venv:dev
- '
-"""
+devsh = "scripts/dev.sh"
buildbox = "docker build -t pythondiscord/snekbox:latest -f docker/Dockerfile ."
pushbox = "docker push pythondiscord/snekbox:latest"
buildboxbase = "docker build -t pythondiscord/snekbox-base:latest -f docker/base.Dockerfile ."