Browse Source

Permettre la préparation seule de l'environnement Docker

... via l'utilisation du drapeau '--prepare-only'
develop
wpetit 3 months ago
parent
commit
5fd65bbb89
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      package

+ 4
- 0
package View File

@@ -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


Loading…
Cancel
Save