Skip to content

artifact mount: improve single file behavior and add name option to specify a custom container name#26430

Merged
openshift-merge-bot[bot] merged 2 commits into
podman-container-tools:mainfrom
Luap99:artifact-mount-name
Jun 16, 2025
Merged

artifact mount: improve single file behavior and add name option to specify a custom container name#26430
openshift-merge-bot[bot] merged 2 commits into
podman-container-tools:mainfrom
Luap99:artifact-mount-name

Conversation

@Luap99

@Luap99 Luap99 commented Jun 14, 2025

Copy link
Copy Markdown
Member

If the artifact has a single blob then use the dst path directly as
mount in case it does not exist.

An artifact without the title annoation just gets the digest as name
which is less than ideal. While it is a decent default to avoid
conflicts users would like to configure the name.

With the name=abc option we will call the file abc in case of a signle
artifact and otherwise we use abc-x where x is the layer index starting
at 0 to avoid conflicts.

Does this PR introduce a user-facing change?

The --mount type=artifact option now mounts a single blob artifact as file if the dest path does not exists in the image.
Added a new --mount type=artifact,name=xxx option to set the filename of the artifact inside the container.

Luap99 added 2 commits June 14, 2025 09:16
If the artifact has a single blob then use the dst path directly as
mount in case it does not exist.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
An artifact without the title annoation just gets the digest as name
which is less than ideal. While it is a decent default to avoid
conflicts users would like to configure the name.

With the name=abc option we will call the file abc in case of a signle
artifact and otherwise we use abc-x where x is the layer index starting
at 0 to avoid conflicts.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@openshift-ci

openshift-ci Bot commented Jun 14, 2025

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 14, 2025
@Luap99

Luap99 commented Jun 14, 2025

Copy link
Copy Markdown
Member Author

cc @baude

@rhatdan

rhatdan commented Jun 15, 2025

Copy link
Copy Markdown
Contributor

LGTM

@baude

baude commented Jun 16, 2025

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 16, 2025
@openshift-merge-bot openshift-merge-bot Bot merged commit 233cae8 into podman-container-tools:main Jun 16, 2025
76 of 77 checks passed
@Luap99 Luap99 deleted the artifact-mount-name branch June 16, 2025 14:00
@stale-locking-app stale-locking-app Bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 15, 2025
@stale-locking-app stale-locking-app Bot locked as resolved and limited conversation to collaborators Sep 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants