aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/jvm/application_container.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/jvm/application_container.go')
-rw-r--r--client/go/jvm/application_container.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/go/jvm/application_container.go b/client/go/jvm/application_container.go
index 924a47f1997..e1ce45f890c 100644
--- a/client/go/jvm/application_container.go
+++ b/client/go/jvm/application_container.go
@@ -9,6 +9,7 @@ import (
"github.com/vespa-engine/vespa/client/go/defaults"
"github.com/vespa-engine/vespa/client/go/envvars"
+ "github.com/vespa-engine/vespa/client/go/prog"
"github.com/vespa-engine/vespa/client/go/trace"
"github.com/vespa-engine/vespa/client/go/util"
)
@@ -166,3 +167,11 @@ func (a *ApplicationContainer) configureOptions() {
opts.AddOption("-Dzookeeper_log_file_prefix=" + zkLogFile)
}
}
+
+func (c *ApplicationContainer) exportExtraEnv(ps *prog.Spec) {
+ if c.ConfigId() != "" {
+ ps.Setenv(envvars.VESPA_CONFIG_ID, c.ConfigId())
+ } else {
+ util.JustExitMsg("application container requires a config id")
+ }
+}