From fe30c2969d186be74291ff6991e0f2f2882cd26b Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 6 Apr 2019 12:36:05 -0700 Subject: [PATCH] Add the default environment variables for servers --- server/environment_docker.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/environment_docker.go b/server/environment_docker.go index 72a65fe..6e7b96b 100644 --- a/server/environment_docker.go +++ b/server/environment_docker.go @@ -355,6 +355,9 @@ func (d *DockerEnvironment) parseLogToStrings(b []byte) ([]string, error) { func (d *DockerEnvironment) environmentVariables() []string { var out = []string{ fmt.Sprintf("STARTUP=%s", d.Server.Invocation), + fmt.Sprintf("SERVER_MEMORY=%d", d.Server.Build.MemoryLimit), + fmt.Sprintf("SERVER_IP=%s", d.Server.Allocations.DefaultMapping.Ip), + fmt.Sprintf("SERVER_PORT=%d", d.Server.Allocations.DefaultMapping.Port), } for k, v := range d.Server.EnvVars {