aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2020-02-28 08:38:55 -0800
committerGravatar GitHub <[email protected]>2020-02-28 08:38:55 -0800
commit3e17cb6462163347234c3569bd4cd2a5c62ced37 (patch)
treea10143d5e0368d72789707aabaf5e6a1679cac94
parentChange snekbox timeout to 6 seconds. (diff)
parentChange CI and dev.sh to not use host network mode. (diff)
Merge pull request #59 from python-discord/compose
Use port mapping, change container name to snekbox.
-rw-r--r--ci/setup.yml1
-rw-r--r--docker-compose.yml7
-rwxr-xr-xscripts/dev.sh1
3 files changed, 4 insertions, 5 deletions
diff --git a/ci/setup.yml b/ci/setup.yml
index cf190de..1c66aa7 100644
--- a/ci/setup.yml
+++ b/ci/setup.yml
@@ -7,7 +7,6 @@ steps:
--detach \
--name snekbox_test \
--privileged \
- --network host \
--hostname pdsnk-dev \
-e PYTHONDONTWRITEBYTECODE=1 \
-e PIPENV_PIPFILE="/snekbox/Pipfile" \
diff --git a/docker-compose.yml b/docker-compose.yml
index aeb2806..aec17d3 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,10 +1,11 @@
version: "3.7"
services:
- pdsnk:
- hostname: "pdsnk"
+ snekbox:
+ container_name: snekbox
privileged: true
image: pythondiscord/snekbox:latest
- network_mode: "host"
+ ports:
+ - 8060:8060
init: true
ipc: none
build:
diff --git a/scripts/dev.sh b/scripts/dev.sh
index 0275651..408ce2e 100755
--- a/scripts/dev.sh
+++ b/scripts/dev.sh
@@ -38,7 +38,6 @@ docker run \
--detach \
--name snekbox_test \
--privileged \
- --network host \
--hostname pdsnk-dev \
--ipc="none" \
-e PYTHONDONTWRITEBYTECODE=1 \