srtool-cli icon indicating copy to clipboard operation
srtool-cli copied to clipboard

Set default to podman

Open chevdor opened this issue 2 years ago • 4 comments

See #23

This is more than just defaulting to podman. There seem to be issues with podman related to the cache temp folder.

TODO:

Here is the list of changes required when the engine is set to podman:

  • [ ] turn on --no-cache
  • [ ] align UID/GID
  • [ ] warn the user that in case of issue, adding --root may help

chevdor avatar May 02 '23 15:05 chevdor

@chevdor Can you elaborate on whats the issue that requires --no-cache? I see that it is set by default now but I'd like to understand the issue since this could significantly increase build times.

trusch avatar May 23 '23 12:05 trusch

The cache requires some mapping to temp folders and there are issues with those. You can check the issues I opened in the podman repo. Without --no-cache it is very likely it will not work out of the box with podman.

chevdor avatar May 23 '23 13:05 chevdor

FWIW I needed to use --root to work with podman. Not sure if that's something that everyone needs or if it's specific to my setup. Without the flag it would fail while trying to create the target directory.

andresilva avatar Jun 15 '23 20:06 andresilva

Ok, thanks for the report @andresilva Some flags are "turned on" automatically when using podman to ensure it works for the user without headache. I am reluctant however to set --root by default.

I think this is the typical issue related to UID/GID+Permissions not matching between container and host.

Using root is the hammer option but good to hear that it works at least.

A better option to investigate and to remove the requirement for --root would be to take care of aligning the UID/GID.

chevdor avatar Jun 16 '23 08:06 chevdor