Expose all env vars to app
container. #263
|
@ -454,9 +454,12 @@ func ExposeAllEnv(compose *composetypes.Config, appEnv AppEnv) {
|
|||
if service.Name == "app" {
|
||||
logrus.Debug("Add the following environment to the app service config:")
|
||||
moritz marked this conversation as resolved
Outdated
|
||||
for k, v := range appEnv {
|
||||
value := v
|
||||
service.Environment[k] = &value
|
||||
logrus.Debugf("Key: %s Value: %s", k, value)
|
||||
_, exists := service.Environment[k]
|
||||
if !exists {
|
||||
value := v
|
||||
service.Environment[k] = &value
|
||||
logrus.Debugf("Add Key: %s Value: %s", k, value)
|
||||
moritz marked this conversation as resolved
Outdated
decentral1se
commented
Same here, with some marker on the recipe/app/etc. perhaps? Same here, with some marker on the recipe/app/etc. perhaps?
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Perhaps include the app / service / etc. info in the log message? Whatever seems appropriate.