Skip to content

Commit

Permalink
Disable kaniko cache compression when prebuilding images (#27023)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcavazos committed Jun 7, 2023
1 parent 3d7ced6 commit 2a5ac11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

## New Features / Improvements

* Allow prebuilding large images when using `--prebuild_sdk_container_engine=cloud_build`, like images depending on `tensorflow` or `torch` ([#27023](https://github.com/apache/beam/pull/27023))
* X feature added (Java/Python) ([#X](https://github.com/apache/beam/issues/X)).

## Breaking Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,13 @@ def _invoke_docker_build_and_push(self, container_image_name):
build.steps = []
step = cloudbuild.BuildStep()
step.name = 'gcr.io/kaniko-project/executor:latest'
step.args = ['--destination=' + container_image_name, '--cache=true']
# Disable compression caching to allow for large images to be cached.
# See: https://github.com/GoogleContainerTools/kaniko/issues/1669
step.args = [
'--destination=' + container_image_name,
'--cache=true',
'--compressed-caching=false',
]
step.dir = SOURCE_FOLDER

build.steps.append(step)
Expand Down

0 comments on commit 2a5ac11

Please sign in to comment.