-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quadlet for adhoc units #18778
Comments
It looks like the exit code doesn't get set if there's a conversion failure, too (ie, using an unsupported key). $ /usr/libexec/podman/quadlet -v -user -dryrun
...
quadlet-generator[27250]: Error converting 'ns-server.container', ignoring: unsupported key 'XYZ' in group 'Container' in /home/nstack/.config/containers/systemd/ns-server.container
...
$ echo $?
0 Could this result in the previous version of the service being deleted (behaviour I'm seeing at the moment, and why being able to run adhoc dryruns is important to me)? |
Thanks for reaching out, @antdking!
You can do that via
Can you elaborate on which parts you want to modify?
|
Thanks for #18828, this will be a big help for doing validation before
Yes; and the workaround is good enough provided This lets us run validation on the
At this point, we're not modifying it now; instead just using the output as a good up-to-date reference. It's not a need anymore, but we had |
That is good news, thanks! |
Fixes: containers#18778 Signed-off-by: Daniel J Walsh <[email protected]>
I'm not sure this should be closed as it only addresses a few of the concerns in this ticket. It doesn't address having a good way to manually run quadlet etc. |
Manually running Quadlet is documented: https://github.com/containers/podman/blob/main/docs/source/markdown/podman-systemd.unit.5.md#debugging-unit-files Note that it's not supported to manually edit the generated files. |
Feature request description
2 main usecases I'm looking to solve:
Suggest potential solution
a super quick implementation would be to document
QUADLET_UNIT_DIRS
.A more ideal solution is to expose something like
podman generate quadlet ./path/to/dir
, asquadlet
doesn't have a fixed location or is available on PATH.Have you considered any alternatives?
Currently using this as a workaround:
why not
podman systemd generate
:the
.container
files provide subjectively nicer interface in the context of provisioning a server, and the generated output requires less manual modificationAdditional context
No response
The text was updated successfully, but these errors were encountered: