FIXES #249: update dotenv with some envs

This commit is contained in:
Muayyad alsadi 2020-11-05 00:08:19 +02:00
parent f6a3cb0aff
commit ab96f12dba

View File

@ -875,6 +875,14 @@ class PodmanCompose:
dotenv_dict = dict([l.split("=", 1) for l in dotenv_ls if "=" in l])
else:
dotenv_dict = {}
# TODO: should read and respect those env variables
# see: https://docs.docker.com/compose/reference/envvars/
# see: https://docs.docker.com/compose/env-file/
dotenv_dict.update({
"COMPOSE_FILE": filename,
"COMPOSE_PROJECT_NAME": self.project_name,
"COMPOSE_PATH_SEPARATOR": ":",
})
compose = {'_dirname': dirname}
for filename in files:
with open(filename, 'r') as f: