// Process configuration overrides from environment
Process configuration overrides from environment
// Process configuration overrides from environment
func initializeFromEnv() {
	var err error
	if os.Getenv("INVOKER_AGENT_DOCKER_SOCK") != "" {
		dockerSock = os.Getenv("INVOKER_AGENT_DOCKER_SOCK")
	}
	if os.Getenv("INVOKER_AGENT_CONTAINER_DIR") != "" {
		containerDir = os.Getenv("INVOKER_AGENT_CONTAINER_DIR")
	}
	if os.Getenv("INVOKER_AGENT_PORT") != "" {
		str := os.Getenv("INVOKER_AGENT_PORT")
		invokerAgentPort, err = strconv.Atoi(str)
		if err != nil {
			fmt.Fprintf(os.Stderr, "Invalid INVOKER_AGENT_PORT %s; error was %v\n", str, err)
			panic(err)
		}
	}
}
func initializeFromEnv ( ) { var err error if os . Getenv ( " " ) != " " { dockerSock = os . Getenv ( " " ) } if os . Getenv ( " " ) != " " { containerDir = os . Getenv ( " " ) } if os . Getenv ( " " ) != " " { str := os . Getenv ( " " ) invokerAgentPort , err = strconv . Atoi ( str ) if err != nil { fmt . Fprintf ( os . Stderr , " \n " , str , err ) panic ( err ) } } }
Process configuration overrides from environment
Process configuration overrides from environment