aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--snekbox.py8
2 files changed, 7 insertions, 3 deletions
diff --git a/README.md b/README.md
index 353d65d..d4a9812 100644
--- a/README.md
+++ b/README.md
@@ -46,7 +46,7 @@ pipenv sync --dev
Start a rabbitmq instance and get the container IP
```bash
-docker run -d --name rmq -p 15672:15672 -e RABBITMQ_DEFAULT_USER=rabbits -e RABBITMQ_DEFAULT_PASS=rabbits pythondiscord/rmq:latest
+docker run -d --name rmq -p 15672:15672 -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest pythondiscord/rmq:latest
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' rmq
# expected output with default setting: 172.17.0.2
# If not, change the config.py file to match
diff --git a/snekbox.py b/snekbox.py
index 7e1c4f6..7433a7d 100644
--- a/snekbox.py
+++ b/snekbox.py
@@ -9,7 +9,10 @@ from rmq import Rmq
class Snekbox(object):
- def __init__(self, nsjail_binary='nsjail', python_binary='/usr/local/bin/python3.6'):
+ def __init__(self,
+ nsjail_binary='nsjail',
+ python_binary='/usr/local/bin/python3.6'):
+
self.nsjail_binary = nsjail_binary
self.python_binary = python_binary
@@ -32,7 +35,8 @@ class Snekbox(object):
'--time_limit', '2',
'--disable_proc',
'--iface_no_lo',
- '--quiet', '--', self.python_binary, '-ISq', '-c', cmd]
+ '--quiet', '--',
+ self.python_binary, '-ISq', '-c', cmd]
proc = subprocess.Popen(args,
stdin=subprocess.PIPE,