Replies: 2 comments 2 replies
-
Thanks for reaching out, @ssbarnea! @containers/podman-maintainers PTAL Can you elaborate on which data you want to cache on Linux? Is the action run as a non-root user? |
Beta Was this translation helpful? Give feedback.
1 reply
-
My main issue concerning podman cache is because user usually cannot read/write other uids from cache (since some containers for example have UID 0 files inside it). I fixed this inserting this step before caching:
Less than beautiful, have a lot of concerns because tar runs as root but works for caching. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using podman inside github actions is critical for some of us and in order to avoid never-ending job executions we need to make use of https://github.com/actions/cache support.
While apparently caching with the solution below works on MacOS, it seems that it does not on Linux.
Please note that we need to cache the contains on both linux and macos and that involves a very different strategy, as on macos caching containers means caching the entire podman machine image.
I opened this thread because I think that we should really produce and maintain a github reusable action for configuring podman, one that also covers caching containers.
What happens...
On Linux, you will see a pipeline warning such:
Spotting where I comes from is tricky as all tasks report green but look for "Post " near the last tasks and expand it. you will see something like here:
Basically tar fails to archive the containers due to permission denied. Not sure why this happens yet.
All github actions run a non-root user, but we can sudo if needed for script command, but stuff like caching will always run a 'runner' non-root user.
Beta Was this translation helpful? Give feedback.
All reactions