Quadlet Container: Add support for EnvironmentFile and EnvironmentHost

Add the new keys to the supported keys list for the Container group
Pass the list of EnvironmentFile values while maintaining the order
Quadlet e2e test framework: Add support for checking regex in Podman args
Add relevant tests
Update man

Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
Ygal Blum
2022-12-28 13:31:46 +02:00
parent e332a244e3
commit 347d5372e1
6 changed files with 95 additions and 10 deletions

View File

@ -93,6 +93,16 @@ Set an environment variable in the container. This uses the same format as
[services in systemd](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Environment=)
and can be listed multiple times.
#### `EnvironmentFile=`
Use a line-delimited file to set environment variables in the container.
The path may be absolute or relative to the location of the unit file.
This key may be used multiple times, and the order persists when passed to `podman run`.
#### `EnvironmentHost=` (defaults to `no`)
Use the host environment inside of the container.
#### `Exec=`
If this is set then it defines what command line to run in the container. If it is not set the