podman-compose/tests/env-file-tests
nathanael.noblet 935029dc33 Fix environment variable precedents
Per https://docs.docker.com/compose/environment-variables/envvars-precedence/#advanced-example

Signed-off-by: nathanael.noblet <nathanael.noblet@willowglensystems.com>
2024-06-22 19:58:02 +03:00
..
env-files pytests: Add tests for several multi-line environment files 2024-05-29 00:09:15 +03:00
project Add support for env_file as objects 2024-05-06 14:13:37 +03:00
README.md Fix environment variable precedents 2024-06-22 19:58:02 +03:00

running the following commands should always give podman-rocks-123

podman-compose -f project/container-compose.yaml --env-file env-files/project-1.env up
podman-compose -f $(pwd)/project/container-compose.yaml --env-file $(pwd)/env-files/project-1.env up
podman-compose -f $(pwd)/project/container-compose.env-file-flat.yaml up
podman-compose -f $(pwd)/project/container-compose.env-file-obj.yaml up
podman-compose -f $(pwd)/project/container-compose.env-file-obj-optional.yaml up

based on environment variable precedent this command should give podman-rocks-321

ZZVAR1=podman-rocks-321 podman-compose -f $(pwd)/project/container-compose.yaml --env-file $(pwd)/env-files/project-1.env up