containers / podman-desktop-e2e

Podman desktop e2e tests
Apache License 2.0
3 stars 7 forks source link

Implement an option to choose a provider for podman machine in pde2e-runner image #206

Closed odockal closed 2 weeks ago

odockal commented 1 month ago

Podman offers an option to use a particular provider for creating a podman machine.

On windows:

On Mac:

The provider setup happens inside containers.conf file which happens to be at ~/config/containers/ on Mac and at ~/AppData/ location on windows.

references and issues:

adrianriobo commented 1 month ago

I did something similar on the podman-backend setting a param on the tekton task and then make use of it within the scripts inside the image:

tekton task:

https://github.com/adrianriobo/podman-e2e/blob/main/tkn/task.yaml#L69

script:

https://github.com/adrianriobo/podman-e2e/blob/main/oci/lib/darwin/run.sh#L64

odockal commented 1 month ago

@adrianriobo thanks! I am was thinking about some thing very similar.

odockal commented 3 weeks ago

@adrianriobo good point, it could be a bit easier using env. vars.

odockal commented 2 weeks ago

Fixed by: https://github.com/odockal/pde2e-runner/commit/445647b05c917cf0ee6ada61d0658c88925cc03f and https://github.com/odockal/pde2e-runner/commit/8a31c49cad94dd656d0a47826fed50e600818213