containers / podlet

Generate Podman Quadlet files from a Podman command, compose file, or existing object
https://crates.io/crates/podlet
Mozilla Public License 2.0
422 stars 12 forks source link

Absolute host paths #55

Closed k9withabone closed 8 months ago

k9withabone commented 8 months ago

Closes #52.

The main thing this PR does is add the podlet --absolute-host-paths option which converts relative host paths (e.g. volume source) to absolute paths. Getting there required a fair amount of yak shaving in the form of fully parsing (and reassembling on output) various podman options. The biggest of which was the mount options for which I implemented another custom Serializer and Deserializer.

k9withabone commented 8 months ago

@rugk could you test this out and see if it meets your expectations?

k9withabone commented 8 months ago

I'm going to merge this tomorrow unless there are any objections. That way I can work on getting a release out this weekend.

rugk commented 8 months ago

Awesome! Thanks in any case. Unfortunately don't have resources to test this now, but I assume it works great. :smiley: