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

Fix image layer meta gathering #339

Merged
merged 2 commits into from
Jun 19, 2024
Merged

Conversation

mike-sul
Copy link
Contributor

@mike-sul mike-sul commented Jun 6, 2024

No description provided.

@mike-sul mike-sul force-pushed the fix-image-layer-meta-gathering branch 2 times, most recently from 638d6b5 to b77bd38 Compare June 6, 2024 13:19
@mike-sul mike-sul force-pushed the fix-image-layer-meta-gathering branch 4 times, most recently from 7339fbb to 2c436b9 Compare June 17, 2024 09:37
If an image was not pulled or pushed by the docker CLI command then
there is no map between image layer diff IDs and digest.
This change adjust the layer meta gathering algorithm to this case.
Specifically, it fetches image manifest and gets image layer digests
from it.

Signed-off-by: Mike Sul <mike.sul@foundries.io>
@mike-sul mike-sul force-pushed the fix-image-layer-meta-gathering branch from 0026efd to 1c3ec86 Compare June 17, 2024 10:43
@mike-sul mike-sul marked this pull request as ready for review June 17, 2024 10:50
@mike-sul mike-sul requested a review from doanac June 17, 2024 10:51
apps/build.sh Outdated
@@ -17,7 +17,7 @@ HERE=$(dirname $(readlink -f $0))
require_params FACTORY

export DOCKER_BUILDKIT=1
BUILDKIT_VERSION="${BUILDKIT_VERSION-v0.10.3}"
BUILDKIT_VERSION="${BUILDKIT_VERSION-v0.13.1}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure this change is needed. If so - can we update the commit message to explain why?

Also - Can we bump this without bumping the docker-dind-ci container image?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I am not sure. Let me double check it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|  #1 DONE 5.5s
|  ERROR: multiple outputs currently unsupported by the current BuildKit daemon, please upgrade to version v0.13+ or use a single output

@mike-sul mike-sul force-pushed the fix-image-layer-meta-gathering branch from 1c3ec86 to 8b61115 Compare June 17, 2024 13:20
apps/build.sh Outdated Show resolved Hide resolved
@mike-sul mike-sul force-pushed the fix-image-layer-meta-gathering branch from 8b61115 to 50007ef Compare June 17, 2024 15:17
If buildkit and buildx supports multiple outputs then:
- Load built images to the local docker store.
- Push/output built images to registry. Make sure the OCI types are not
  used and create an image manifest not index.

Signed-off-by: Mike Sul <mike.sul@foundries.io>
@mike-sul mike-sul force-pushed the fix-image-layer-meta-gathering branch from 50007ef to 0435867 Compare June 18, 2024 07:53
@mike-sul mike-sul merged commit 6a93cbf into master Jun 19, 2024
2 checks passed
@mike-sul mike-sul deleted the fix-image-layer-meta-gathering branch June 19, 2024 03:57
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

Successfully merging this pull request may close these issues.

2 participants