support str style configuration for env_file

This commit is contained in:
pinfort 2020-09-09 23:19:07 +09:00 committed by Muayyad Alsadi
parent 90639769f0
commit efba3a1380

View File

@ -533,7 +533,9 @@ def container_to_args(compose, cnt, detached=True, podman_command='run'):
podman_args.extend(['--device', d])
for e in env:
podman_args.extend(['-e', e])
for i in cnt.get('env_file', []):
env_file = cnt.get('env_file', [])
if is_str(env_file): env_file = [env_file]
for i in env_file:
i = os.path.realpath(os.path.join(dirname, i))
podman_args.extend(['--env-file', i])
tmpfs_ls = cnt.get('tmpfs', [])