diff options
| author | 2018-05-31 16:58:03 +0200 | |
|---|---|---|
| committer | 2018-05-31 16:58:03 +0200 | |
| commit | fce689a3b4c27f3e554e0d573fb4f82f674526e3 (patch) | |
| tree | 72a920c14297215b563f92bd0ef291ebc9219b0d | |
| parent | change testing user and password to guest (diff) | |
update readme [ci skip]
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | snekbox.py | 8 | 
2 files changed, 7 insertions, 3 deletions
| @@ -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 @@ -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, | 
