Commit 34e27ca6 authored by Thomas Phil's avatar Thomas Phil

debugging in mockcloud

parent 8a0e296a
......@@ -17,4 +17,4 @@ RUN cd /opt/strongr && python app.py d:create
WORKDIR /opt/strongr
CMD ['python', 'app.py', 'r:r']
CMD ["python", "app.py", "r:r"]
......@@ -42,6 +42,8 @@ class RunJobHandler(AbstractRunJobHandler):
cmd = 'docker run --rm {} {} -di --name {} -m {}g --cpus={} --entrypoint /bin/sh {}'.format(volumes, env, command.job_id, command.memory, command.cores, quote(command.image))
ret_code = subprocess.call(cmd, shell=True) # start docker container
print(cmd)
if ret_code != 0:
raise Exception('Something went wrong while initializing docker image: {}'.format(cmd))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment