Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildctl failes to import cache manifest #91

Open
rrajpuro opened this issue May 16, 2023 · 0 comments
Open

buildctl failes to import cache manifest #91

rrajpuro opened this issue May 16, 2023 · 0 comments

Comments

@rrajpuro
Copy link

Running a toolchain with BUILD stage that uses commons/scripts/build_image_buildkit.sh failes to import cache manifest from us.icr.io.
In my opinion, the ERROR is that it is unable to find an image with the tag :latest as the images are stored with a custom tag as below

# Minting image tag using format: BUILD_NUMBER-BRANCH-COMMIT_ID-TIMESTAMP
# e.g. 3-master-50da6912-20181123114435

Lines 42 and 43 in the script

I believe so because of the following snippet

user@cloudshell:~$ ibmcloud cr image-inspect us.icr.io/<container-registry>/<image>
Inspecting image 'us.icr.io/<container-registry>/<image>:latest'...

FAILED
The image was not found.
Correct the image name or digest reference, and try again.

Can one of the possible solutions be to add an additional tag :latest once the image is built?
so that subsequent toolchains can use cache manifest instead of building the image again from scratch.

P.S. I'm new to Container technology, please correct me if I'm missing something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant