Add default flags

This commit is contained in:
wpetit 2017-07-11 12:14:38 +02:00
parent 16b0ef996d
commit 7f8a13bd52
1 changed files with 5 additions and 4 deletions

View File

@ -86,16 +86,17 @@ if __name__ == "__main__":
kwargs = dict() kwargs = dict()
kwargs['debug'] = args.debug kwargs['debug'] = args.debug
docker_args = [] docker_args = [
"run",
"--rm",
]
# Append custom arguments # Append custom arguments
if len(args.override_run_flags) > 0: if len(args.override_run_flags) > 0:
docker_args += args.override_run_flags docker_args += args.override_run_flags
else: else:
# rkt run arguments # volumes definition
docker_args += [ docker_args += [
"run",
"--rm",
"-v", "{:s}:/src:ro".format(project_dir), "-v", "{:s}:/src:ro".format(project_dir),
"-v", "{:s}:/dist".format(output_dir), "-v", "{:s}:/dist".format(output_dir),
"-v", "{:s}:/tamarin/hooks:ro".format(tamarin.get_hooks_dir()), "-v", "{:s}:/tamarin/hooks:ro".format(tamarin.get_hooks_dir()),