Permettre la préparation seule de l'environnement Docker
... via l'utilisation du drapeau '--prepare-only'
This commit is contained in:
parent
db952bc2f7
commit
5fd65bbb89
4
package
4
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("--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("--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("--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
|
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)
|
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 = dict()
|
||||||
kwargs['debug'] = args.debug
|
kwargs['debug'] = args.debug
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue