From ceeddab90c9236ae6e9740d50303f657664d2d37 Mon Sep 17 00:00:00 2001 From: redbeardymcgee Date: Sun, 24 Nov 2024 21:20:52 -0600 Subject: [PATCH] borrow templates from fpatrick https://github.com/fpatrick/podman-quadlet --- quadlets/template.container | 44 ++++++++++++++++++++++--------------- quadlets/template.env | 1 + quadlets/template.network | 6 +++++ 3 files changed, 33 insertions(+), 18 deletions(-) create mode 100644 quadlets/template.env create mode 100644 quadlets/template.network diff --git a/quadlets/template.container b/quadlets/template.container index bf4394e..95f52dc 100644 --- a/quadlets/template.container +++ b/quadlets/template.container @@ -1,23 +1,31 @@ +# source: https://github.com/fpatrick/podman-quadlet [Unit] -Description= -After= - -[Service] -Restart=on-failure -TimeoutStartSec=900 - -[Install] -WantedBy=default.target +Description= # (Optional) A brief description of the service +Wants= # (Optional) Services you want to run with this one +After= # (Optional) Services that need to start before this one [Container] -Image= -ContainerName= -HostName= +ContainerName= # (Mandatory) The container's name +Image= # (Mandatory) The container image to use (e.g., docker.io/library/alpine) +HostName= # (Optional) The containers hostname +EnvironmentFile= # (Optional) Path to an .env file +Environment= # (Optional) Key=value pairs for environment variables +Volume= # (Optional) Persistent storage paths (host:container) +Network= # (Optional) Custom network for the container +PublishPort= # (Optional) Ports to expose (host:container) +Exec= # (Optional) Custom command to run in the container +PodmanArgs= # (Optional) Additional Podman arguments +AddCapability= # (Optional) Extra capabilities to add to the container +AddDevice= # (Optional) Add host devices to the container +SecurityLabelDisable= # (Optional) Disable SELinux labels +User= # (Optional) Run as a specific user inside the container +Label= # (Optional) Add metadata labels to the container +UIDMap= # (Optional) User ID mapping. Example: 0:10000:10 (Inside:Outside:Range) +GIDMap= # (Optional) Group ID mapping Example: 0:10000:10 (Inside:Outside:Range) -Network= +[Service] +Restart= # (Optional) Set to 'always' or 'on-failure' to restart on failure +TimeoutStartSec= # (Optional) Time to wait before considering a failure -Volume= - -Secret= - -Environment= +[Install] +WantedBy= # (Optional) Target to start with (default: multi-user.target). For graphical user interface systems default.target diff --git a/quadlets/template.env b/quadlets/template.env new file mode 100644 index 0000000..01c1ad9 --- /dev/null +++ b/quadlets/template.env @@ -0,0 +1 @@ +EXAMPLE=value diff --git a/quadlets/template.network b/quadlets/template.network new file mode 100644 index 0000000..2095aeb --- /dev/null +++ b/quadlets/template.network @@ -0,0 +1,6 @@ +# source: https://github.com/fpatrick/podman-quadlet +[Network] +Subnet= # (Mandatory) Subnet for the network +Gateway= # (Mandatory) Gateway IP address +Label= # (Optional) Custom label for the network +