From fce689a3b4c27f3e554e0d573fb4f82f674526e3 Mon Sep 17 00:00:00 2001 From: Christopher Baklid Date: Thu, 31 May 2018 16:58:03 +0200 Subject: update readme [ci skip] --- README.md | 2 +- snekbox.py | 8 ++++++-- 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, -- cgit v1.2.3