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

--after option not working #64

Closed ssnepenthe closed 6 months ago

ssnepenthe commented 7 months ago

The --after option does not appear to be working at the moment...

Running podman run quay.io/k9withabone/podlet --after db.service podman run someregistry.io/my/web:latest generates the following:

# web.container
[Unit]

[Container]
Image=someregistry.io/my/web:latest

Expected behavior is to see After=db.service in the unit section

Possibly related - let's try the --before option: podman run quay.io/k9withabone/podlet --before web.service podman run someregistry.io/my/db:latest:

# db.container
[Unit]
Before=web.service
After=

[Container]
Image=someregistry.io/my/db:latest

Empty after in the unit section is unexpected.

$ podman run quay.io/k9withabone/podlet --version
podlet 0.2.4