diff options
| author | 2019-06-06 16:54:33 -0700 | |
|---|---|---|
| committer | 2019-06-22 13:36:38 -0700 | |
| commit | 2c843101843b975ece546b8921d53b3dd4e6974d (patch) | |
| tree | a3c56d081cc9b541d35662af26e80f7b2fbc02b6 /Pipfile | |
| parent | Add 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-- | Pipfile | 24 |
1 files changed, 1 insertions, 23 deletions
@@ -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 ." |