Skip to content

Switch to using digests for Kokoro builds - #3119

Merged
GMNGeoffrey merged 7 commits into
iree-org:mainfrom
GMNGeoffrey:docker-sha
Sep 14, 2020
Merged

GMNGeoffrey merged 7 commits into
iree-org:mainfrom
GMNGeoffrey:docker-sha

Conversation

@GMNGeoffrey

@GMNGeoffrey GMNGeoffrey commented Sep 11, 2020 •

Copy link
Copy Markdown
Member

Note that we still specify the container that Kokoro preloads on VM
creation based on the prod tag, so it remains important to update
that. If the sha256 specified matches the already loaded image, Docker
will recognize this and not pull again. There are no new download steps
in the logs for the Kokoro runs here. Contrast with the case where
Docker can't find the image and pulls it when docker run is invoked:
"Unable to find image 'gcr.io/iree-oss/bazel:latest' locally
latest: Pulling from iree-oss/bazel"

Note that the swiftshader builds actually do have download steps. Looks
like we didn't set up preloading for those images (although it only
appears to take 15 seconds, so maybe that isn't such a big deal...)

This mostly involves renaming and expanding the python script for
managing our docker containers, including adding functionality to
update image references and fixing the broken topological sort
function.

Part of #3117

Comment thread build_tools/docker/manage_images.py Resolved
Comment thread build_tools/docker/manage_images.py Resolved
Comment thread build_tools/docker/manage_images.py Resolved
Comment thread build_tools/docker/manage_images.py Resolved
Comment thread build_tools/docker/manage_images.py Resolved
Comment thread build_tools/docker/manage_images.py Resolved
Comment thread build_tools/docker/manage_images.py Resolved
@GMNGeoffrey
GMNGeoffrey merged commit a5063ef into iree-org:main Sep 14, 2020
@GMNGeoffrey
GMNGeoffrey deleted the docker-sha branch September 14, 2020 21:33
@ScottTodd ScottTodd mentioned this pull request Sep 14, 2020
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants