From b2deaf0b81f4abca926beecc0ecb939f419e68f4 Mon Sep 17 00:00:00 2001 From: timfeirg Date: Thu, 26 Jan 2017 16:17:00 +0800 Subject: [PATCH] add nodename as container env --- cluster/calcium/create_container.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster/calcium/create_container.go b/cluster/calcium/create_container.go index 93a6cb3ff..9ba2b3823 100644 --- a/cluster/calcium/create_container.go +++ b/cluster/calcium/create_container.go @@ -542,6 +542,7 @@ func (c *calcium) makeContainerOptions(quota map[string]int, specs types.Specs, env := append(opts.Env, fmt.Sprintf("APP_NAME=%s", specs.Appname)) env = append(env, fmt.Sprintf("ERU_POD=%s", opts.Podname)) env = append(env, fmt.Sprintf("ERU_NODE_IP=%s", nodeIP)) + env = append(env, fmt.Sprintf("ERU_NODE_NAME=%s", opts.Nodename)) env = append(env, fmt.Sprintf("ERU_ZONE=%s", c.config.Zone)) // mount paths