From 422407a37cd2e51ecdda85fb008b18332343ad90 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 17 Jul 2017 17:54:25 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20points=20d'insertions=20[ARCH]=20?= =?UTF-8?q?et=20[PROFILE]=20pour=20la=20commande=20pass=C3=A9e=20au=20drap?= =?UTF-8?q?eau=20override-docker-args?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package b/package index 5a47719..3fe963c 100755 --- a/package +++ b/package @@ -21,7 +21,7 @@ def create_args_parser(): parser.add_argument("--rebuild", help="Ignore cache and rebuild container's image", action="store_true", default=False) parser.add_argument("--debug", help="Will add extra output and start the container in interactive mode", action="store_true", default=False) parser.add_argument("--cleanup", help="Clear the workspace and remove obsolete Docker images before build", action="store_true", default=False) - parser.add_argument("--override-docker-args", help="Override all 'docker run' arguments. Use '[IMAGE_TAG]' to insert the generated image's name.", default="") + parser.add_argument("--override-docker-args", help="Override all 'docker run' arguments. Use '[IMAGE_TAG]', '[PROFILE]' and '[ARCH]' to insert the corresponding values into your command.", default="") return parser @@ -91,6 +91,8 @@ if __name__ == "__main__": # Append custom arguments if args.override_docker_args != "": docker_args = args.override_docker_args.replace('[IMAGE_TAG]', image_tag) + docker_args = args.override_docker_args.replace('[PROFILE]', args.profile) + docker_args = args.override_docker_args.replace('[ARCH]', args.architecture) else: docker_args += [ "run", "--rm" ]