diff --git a/package b/package index d02b2ce..4e450dc 100755 --- a/package +++ b/package @@ -22,6 +22,7 @@ def create_args_parser(): 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]', '[PROFILE]' and '[ARCH]' to insert the corresponding values into your command.", default="") + parser.add_argument("--prepare-only", help="Only prepare build environment for the given profile", action="store_true", default=False) return parser @@ -83,6 +84,9 @@ if __name__ == "__main__": image_tag = build_image(build_workspace, base_image, args.profile, profile, debug=args.debug, rebuild=args.rebuild) + if args.prepare_only: + exit() + kwargs = dict() kwargs['debug'] = args.debug