This commit is contained in:
parent
2ce774a249
commit
08f068d255
2 changed files with 6 additions and 0 deletions
|
@ -91,6 +91,10 @@ func CreateContainer(definition service_definition.ContainerDefinition, knownVol
|
|||
"--replace",
|
||||
}
|
||||
|
||||
if definition.EnvFile != "" {
|
||||
args = append(args, []string{"--env-file", definition.EnvFile}...)
|
||||
}
|
||||
|
||||
for _, volume := range definition.Volumes {
|
||||
var host string
|
||||
var suffix string
|
||||
|
@ -129,6 +133,7 @@ func CreateContainer(definition service_definition.ContainerDefinition, knownVol
|
|||
}
|
||||
|
||||
if err := command.Wait(); err != nil {
|
||||
log.Fatal(args)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ type ContainerDefinition struct {
|
|||
Name string `yaml:"name"`
|
||||
Image string `yaml:"image"`
|
||||
Volumes []VolumeConfiguration `yaml:"volumes"`
|
||||
EnvFile string `yaml:"env-file"`
|
||||
ExtraArgs []string `yaml:"extra-args"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue