Question for the #podman #quadlet #container users out there:
Given that I have a quadlet file that has an "Environment=FOO=bar" setting, which makes the variable FOO available to the container.
Now I can use a "Exec=echo $FOO" inside the container and get my variable's value. Also "Exec=env" prints out the environment variables, which contains the FOO variable.
The variable is set inside the container, but not exported to any subshells being started. What would be the best approach to do that so I can start a bash script using "Exec=/my_bash_script.sh"
I tried different variations of "Entrypoint=/bin/bash" and "Exec=-c '...'" and things like that, but nothing seemed to work.
Background: I can use Podman secrets as environment variables, but I cannot at the same time use things like bash's date command to get a proper timestamp, if I directly start the executable via "Exec"...