Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions run_docker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/u/nlp/packages/anaconda2/bin/python

# THIS SCRIPT SHOULD BE SYMLINKED INTO THE ROOT OF YOUR GIT REPO
# It assumes that config.json can also be found at the root of your repo.

Expand Down Expand Up @@ -68,11 +66,11 @@
options=' '.join(docker_args),
image=image,
command=args.command)
print 'Data directory: {}'.format(data_dir)
print 'Command to run inside Docker: {}'.format(args.command)
print('Data directory: {}'.format(data_dir))
print('Command to run inside Docker: {}'.format(args.command))

print pull_cmd
print run_cmd
print(pull_cmd)
print(run_cmd)
if not args.debug:
subprocess.call(pull_cmd, shell=True)
subprocess.call(run_cmd, shell=True)