Skip to content

move container_mount into library; support mpp-resolve for org.osbuild.containers-storage#2222

Merged
supakeen merged 5 commits intoosbuild:mainfrom
dustymabe:dusty-containers-storage
Oct 23, 2025
Merged

move container_mount into library; support mpp-resolve for org.osbuild.containers-storage#2222
supakeen merged 5 commits intoosbuild:mainfrom
dustymabe:dusty-containers-storage

Conversation

@dustymabe
Copy link
Contributor

See individual commit messages.

The biggest win here is being able to skip the (currently required) skopeo copy when using a org.osbuild.containers-storage input for the org.osbuild.container-deploy stage.

@dustymabe dustymabe requested a review from a team as a code owner October 15, 2025 20:37
@dustymabe dustymabe requested review from bcl, lzap and mvo5 and removed request for a team October 15, 2025 20:37
@ondrejbudai ondrejbudai force-pushed the dusty-containers-storage branch from 17f7859 to 89ddc5a Compare October 16, 2025 11:06
@ondrejbudai
Copy link
Member

(rebased because I would like all PRs to have b6c011a so I can finish my key rotation task)

@achilleas-k achilleas-k self-requested a review October 16, 2025 11:44
@dustymabe dustymabe force-pushed the dusty-containers-storage branch 2 times, most recently from 91321b6 to ad65cf2 Compare October 16, 2025 12:55
@dustymabe
Copy link
Contributor Author

✅ All checks have passed

😍

dustymabe added a commit to dustymabe/coreos-assembler that referenced this pull request Oct 17, 2025
This backports osbuild/osbuild#2222
which will allow us to drop at least one skopeo copy to help
speed things up.
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM. Small comment about the unit test.
Also, the third commit message (osbuild/util/containers.py: drop copy when using containers-storage i…) is too long.
Can you shrink it to < 72 chars?
You can just use osbuild/util: ... in the commit messages to refer to the module.

@dustymabe
Copy link
Contributor Author

fixed the length of the commit message title to be < 72 chars

@dustymabe dustymabe enabled auto-merge (rebase) October 21, 2025 18:09
@dustymabe
Copy link
Contributor Author

The shutzbot errors along the lines of:

+ gpg --verify awscliv2.sig awscliv2.zip
gpg: Signature made Tue 21 Oct 2025 07:22:40 PM UTC
gpg:                using RSA key FB5DB77FD5C118B80511ADA8A6310ACC4672475C
gpg: BAD signature from "AWS CLI Team <aws-cli@amazon.com>" [expired]

seem unrelated to this PR. The previous push in this PR passed tests and the last push was just a commit message update (no content change) so I'd say it's safe to push.

@dustymabe dustymabe disabled auto-merge October 22, 2025 16:39
@supakeen supakeen force-pushed the dusty-containers-storage branch from 41ea9a1 to 0734092 Compare October 22, 2025 16:48
@supakeen supakeen self-assigned this Oct 22, 2025
@supakeen supakeen enabled auto-merge (rebase) October 22, 2025 17:03
@supakeen
Copy link
Member

CI is probably failing because #2223 needs to land first; I'll babysit and rebase after that gets in.

dustymabe added a commit to coreos/coreos-assembler that referenced this pull request Oct 22, 2025
This backports osbuild/osbuild#2222
which will allow us to drop at least one skopeo copy to help
speed things up.
As prep for a later patch this moves the container image mounting code
from stages/org.osbuild.container-deploy into the containers library.

This commit also removes the associated unit test since it wasn't doing
much and also there doesn't seem to be a place for unit testing
osbuild/util/containers.py.
This is really a name and not a tag (it doesn't include :tag) so let's
rename the variable to be a little more clear.
If we are just mounting the container then there's really no reason
we can't just `podman mount` it directly rather than copying it from
one local containers-storage to another.
The original reason to implement this for org.osbuild.container-deploy
was because we were doing `skopeo copy` from one containers-storage
instance to another and we needed the option if the container was
signed.

With the most recent commit to container_mount in containers.py we
don't actually ever skopeo copy from one containers-storage instance
to another, but rather `podman mount` directly, so we should be able
to drop this option.

Context in:
- containers/container-libs#197
- osbuild/bootc-image-builder#681
- osbuild#1906
@supakeen supakeen force-pushed the dusty-containers-storage branch from 0734092 to 368994b Compare October 23, 2025 06:32
@supakeen supakeen merged commit d2562f3 into osbuild:main Oct 23, 2025
53 checks passed
dustymabe added a commit to dustymabe/coreos-assembler that referenced this pull request Oct 23, 2025
Now that osbuild/osbuild#2222 merged
we can update these patches with the actual commit IDs from
the upstream code base.
dustymabe added a commit to dustymabe/coreos-assembler that referenced this pull request Oct 23, 2025
Now that osbuild/osbuild#2222 merged
we can update these patches with the actual commit IDs from
the upstream code base.
dustymabe added a commit to coreos/coreos-assembler that referenced this pull request Oct 23, 2025
Now that osbuild/osbuild#2222 merged
we can update these patches with the actual commit IDs from
the upstream code base.
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.

4 participants