Fix user so we can mount volumes as RW

This commit is contained in:
Ben Picolo
2017-01-04 10:44:18 -05:00
parent 9b92f96ed0
commit baf254ab78

View File

@@ -78,9 +78,11 @@ def run_hook(repo_cmd_runner, hook, file_args):
cmd = (
'docker', 'run',
'--rm',
'-v', '{}:/src'.format(os.getcwd()),
'-u', '{}:{}'.format(os.getuid(), os.getgid()),
'-v', '{}:/src:rw'.format(os.getcwd()),
'--workdir', '/src',
'--entrypoint', hook['entry'],
docker_tag(repo_cmd_runner)
)
return xargs(cmd + tuple(hook['args']), file_args)