Add the default environment variables for servers

This commit is contained in:
Dane Everitt 2019-04-06 12:36:05 -07:00
parent 7d67be8382
commit fe30c2969d
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -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 {