mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
add env support in mesos
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
@@ -104,6 +104,10 @@ func (t *task) build(slaveID string) {
|
||||
t.Container.Docker.Parameters = append(t.Container.Docker.Parameters, &mesosproto.Parameter{Key: proto.String("label"), Value: proto.String(fmt.Sprintf("%s=%s", key, value))})
|
||||
}
|
||||
|
||||
for _, value := range t.config.Env {
|
||||
t.Container.Docker.Parameters = append(t.Container.Docker.Parameters, &mesosproto.Parameter{Key: proto.String("env"), Value: proto.String(value)})
|
||||
}
|
||||
|
||||
t.SlaveId = &mesosproto.SlaveID{Value: &slaveID}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user