Skip to content

Commit 23869bb

Browse files
committed
arg to disable docker cache
1 parent 8629c59 commit 23869bb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

build.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,6 +1788,11 @@ def create_docker_build_script(script_name, container_install_dir, container_ci_
17881788
"--pull",
17891789
]
17901790

1791+
if FLAGS.no_container_cache:
1792+
baseargs += [
1793+
"--no-cache",
1794+
]
1795+
17911796
# Windows docker runs in a VM and memory needs to be specified
17921797
# explicitly (at least for some configurations of docker).
17931798
if target_platform() == "windows":
@@ -2468,6 +2473,12 @@ def enable_all():
24682473
required=False,
24692474
help="Do not use Docker --pull argument when building container.",
24702475
)
2476+
parser.add_argument(
2477+
"--no-container-cache",
2478+
action="store_true",
2479+
required=False,
2480+
help="Use Docker --no-cache argument when building container.",
2481+
)
24712482
parser.add_argument(
24722483
"--container-memory",
24732484
default=None,

0 commit comments

Comments
 (0)