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 = ( cmd = (
'docker', 'run', 'docker', 'run',
'--rm', '--rm',
'-v', '{}:/src'.format(os.getcwd()), '-u', '{}:{}'.format(os.getuid(), os.getgid()),
'-v', '{}:/src:rw'.format(os.getcwd()),
'--workdir', '/src', '--workdir', '/src',
'--entrypoint', hook['entry'], '--entrypoint', hook['entry'],
docker_tag(repo_cmd_runner) docker_tag(repo_cmd_runner)
) )
return xargs(cmd + tuple(hook['args']), file_args) return xargs(cmd + tuple(hook['args']), file_args)