Skip to content

Conversation

@feloy
Copy link
Contributor

@feloy feloy commented Apr 30, 2025

Part of #45

If an image named ~/.local/share/containers/podman-desktop/extensions-storage/redhat.macadam/images/image is found and no image is given by the user in creation form, this image will be used.

This is a first step towards downloading the image from repository and caching it in the user's FS

To test it, you can copy a RHEL image compatible with your platform in the directory ~/.local/share/containers/podman-desktop/extensions-storage/redhat.macadam/images/, by renaming it as image, then create a VM without specifying an image path.

@feloy feloy requested review from cdrage and jeffmaury April 30, 2025 11:54
@feloy feloy force-pushed the feat-45/use-cached-image branch from a4fb373 to 0188252 Compare April 30, 2025 15:10
@feloy feloy force-pushed the feat-45/use-cached-image branch from 0188252 to a9d0a44 Compare April 30, 2025 17:49
@feloy feloy requested a review from SoniaSandler April 30, 2025 20:52
Copy link
Contributor

@SoniaSandler SoniaSandler left a comment

Choose a reason for hiding this comment

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

LGTM, tested and it works as intended.
Question (nit): should we add some indication (probably in a later PR) that the image-path field in the creation form is optional and if nothing is provided it'll try to use the cached image if it exists?

@feloy feloy merged commit 13cdc12 into redhat-developer:main May 2, 2025
5 checks passed
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