From cb09032aa8ac109b124e66dec7a49c0212d37889 Mon Sep 17 00:00:00 2001 From: powerkimhub Date: Mon, 19 Jul 2021 23:54:51 +0000 Subject: [PATCH] Add the Service Address Configuration --- api-runtime/apiserver.go | 2 +- api-runtime/common-runtime/common.go | 13 ++- .../grpc-runtime/CBSpiderGRPCRuntime.go | 2 +- api-runtime/meerkat-runtime/MeerkatRuntime.go | 4 +- api-runtime/rest-runtime/CBSpiderRuntime.go | 85 ++++++++++++------- .../admin-web/AdminWeb-CCM-MGMT.go | 8 +- .../rest-runtime/admin-web/AdminWeb-CCM.go | 20 ++--- .../rest-runtime/admin-web/AdminWeb-CIM.go | 18 ++-- setup.env | 17 ++-- 9 files changed, 102 insertions(+), 67 deletions(-) diff --git a/api-runtime/apiserver.go b/api-runtime/apiserver.go index 9a1607732..aaf644947 100644 --- a/api-runtime/apiserver.go +++ b/api-runtime/apiserver.go @@ -77,7 +77,7 @@ func NewInfoCmd() *cobra.Command { Use: "info", Run: func(cmd *cobra.Command, args []string) { client := resty.New() - resp, err := client.R().Get("http://" + cr.HostIPorName + cr.ServicePort + "/spider/endpointinfo") + resp, err := client.R().Get("http://" + cr.ServiceIPorName + cr.ServicePort + "/spider/endpointinfo") if err != nil { fmt.Printf("%v\n", err) } else { diff --git a/api-runtime/common-runtime/common.go b/api-runtime/common-runtime/common.go index 02a2234dc..6aa80cb58 100644 --- a/api-runtime/common-runtime/common.go +++ b/api-runtime/common-runtime/common.go @@ -14,6 +14,17 @@ const SG_DELIMITER string = "-deli-" var StartTime string var MiddleStartTime string var ShortStartTime string -var HostIPorName string + + +//// CB-Spider Servcie Address Configuration +//// cf) https://github.com/cloud-barista/cb-spider/wiki/CB-Spider-Service-Address-Configuration +// REST and GO SERVER_ADDRESS since v0.4.4 +var ServerIPorName string +var ServerPort string + +// REST SERVICE_ADDRESS for AdminWeb since v0.4.4 +var ServiceIPorName string var ServicePort string + +// GO Service Port var GoServicePort string diff --git a/api-runtime/grpc-runtime/CBSpiderGRPCRuntime.go b/api-runtime/grpc-runtime/CBSpiderGRPCRuntime.go index e05f90121..a583f84ab 100644 --- a/api-runtime/grpc-runtime/CBSpiderGRPCRuntime.go +++ b/api-runtime/grpc-runtime/CBSpiderGRPCRuntime.go @@ -73,7 +73,7 @@ func RunServer() { //fmt.Printf("\n\n => grpc server started on %s\n\n", spidersrv.Addr) cr.GoServicePort = spidersrv.Addr - spiderBanner(cr.HostIPorName + spidersrv.Addr) + spiderBanner(cr.ServiceIPorName + spidersrv.Addr) if err := gs.Serve(conn); err != nil { logger.Error("failed to serve: ", err) diff --git a/api-runtime/meerkat-runtime/MeerkatRuntime.go b/api-runtime/meerkat-runtime/MeerkatRuntime.go index 660eddee8..d3ab41eed 100644 --- a/api-runtime/meerkat-runtime/MeerkatRuntime.go +++ b/api-runtime/meerkat-runtime/MeerkatRuntime.go @@ -36,7 +36,7 @@ const ( port = ":4096") func init() { - myServerID = cr.HostIPorName + port + "-" + cr.MiddleStartTime + myServerID = cr.ServiceIPorName + port + "-" + cr.MiddleStartTime childkat.MyServerID = myServerID } /* @@ -66,7 +66,7 @@ func RunServer() { // Register reflection service on gRPC server. reflection.Register(s) - spiderBanner(cr.HostIPorName + port) + spiderBanner(cr.ServiceIPorName + port) // register this server status into SpiderHub's registry strY := itsMe() diff --git a/api-runtime/rest-runtime/CBSpiderRuntime.go b/api-runtime/rest-runtime/CBSpiderRuntime.go index 3ae69ca7f..630ea94ed 100644 --- a/api-runtime/rest-runtime/CBSpiderRuntime.go +++ b/api-runtime/rest-runtime/CBSpiderRuntime.go @@ -57,8 +57,14 @@ func init() { cr.StartTime = currentTime.Format("2006.01.02 15:04:05 Mon") cr.MiddleStartTime = currentTime.Format("2006.01.02.15:04:05") cr.ShortStartTime = fmt.Sprintf("T%02d:%02d:%02d", currentTime.Hour(), currentTime.Minute(), currentTime.Second()) - cr.HostIPorName = getHostIPorName() - cr.ServicePort = getServicePort() + + // REST and GO SERVER_ADDRESS since v0.4.4 + cr.ServerIPorName = getServerIPorName("SERVER_ADDRESS") + cr.ServerPort = getServerPort("SERVER_ADDRESS") + + // REST SERVICE_ADDRESS for AdminWeb since v0.4.4 + cr.ServiceIPorName = getServiceIPorName("SERVICE_ADDRESS") + cr.ServicePort = getServicePort("SERVICE_ADDRESS") } // REST API Return struct for boolean type @@ -81,28 +87,26 @@ type SimpleMsg struct { Message string `json:"message" example:"Any message"` } -//====== temporary trick for shared public IP Host or VirtualBox VM, etc. -//====== user can setup spider server's IP manually. -// unset # default: like 'curl ifconfig.co':1024 -// LOCALHOST="OFF" # default: like 'curl ifconfig.co':1024 -// LOCALHOST="ON" # => localhost:1024 -// LOCALHOST="1.2.3.4" # => 1.2.3.4:1024 -// LOCALHOST="1.2.3.4:31024" # => 1.2.3.4:31024 -// LOCALHOST=":31024" # => like 'curl ifconfig.co':31024 -func getHostIPorName() string { +//// CB-Spider Servcie Address Configuration +//// cf) https://github.com/cloud-barista/cb-spider/wiki/CB-Spider-Service-Address-Configuration - hostEnv := os.Getenv("LOCALHOST") +// REST and GO SERVER_ADDRESS since v0.4.4 - if hostEnv == "ON" { - return "localhost" - } +// unset # default: like 'curl ifconfig.co':1024 +// SERVER_ADDRESS="1.2.3.4:3000" # => 1.2.3.4:3000 +// SERVER_ADDRESS=":3000" # => like 'curl ifconfig.co':3000 +// SERVER_ADDRESS="localhost" # => localhost:1024 +// SERVER_ADDRESS="1.2.3.4:3000" # => 1.2.3.4::3000 +func getServerIPorName(env string) string { - if hostEnv == "" || hostEnv=="OFF" { + hostEnv := os.Getenv(env) // SERVER_ADDRESS or SERVICE_ADDRESS + + if hostEnv == "" { return getPublicIP() } - // "1.2.3.4" + // "1.2.3.4" or "localhost" if !strings.Contains(hostEnv, ":") { return hostEnv } @@ -111,7 +115,7 @@ func getHostIPorName() string { fmt.Println(len(strs)) if strs[0] =="" { // ":31024" return getPublicIP() - }else { // "1.2.3.4:31024" + }else { // "1.2.3.4:31024" or "localhost:31024" return strs[0] } } @@ -130,26 +134,45 @@ func getPublicIP() string { return ip.String() } -func getServicePort() string { +func getServerPort(env string) string { + // default REST Service Port servicePort := ":1024" - hostEnv := os.Getenv("LOCALHOST") - if hostEnv == "" || hostEnv=="OFF" || hostEnv=="ON" { + hostEnv := os.Getenv(env) // SERVER_ADDRESS or SERVICE_ADDRESS + if hostEnv == "" { return servicePort } - // "1.2.3.4" + // "1.2.3.4" or "localhost" if !strings.Contains(hostEnv, ":") { return servicePort } - // ":31024" or "1.2.3.4:31024" + // ":31024" or "1.2.3.4:31024" or "localhost:31024" strs := strings.Split(hostEnv, ":") servicePort = ":" + strs[1] return servicePort } +// unset SERVER_ADDRESS => SERVICE_ADDRESS +func getServiceIPorName(env string) string { + hostEnv := os.Getenv(env) + if hostEnv == "" { + return cr.ServerIPorName + } + return getServerIPorName(env) +} + +// unset SERVER_ADDRESS => SERVICE_ADDRESS +func getServicePort(env string) string { + hostEnv := os.Getenv(env) + if hostEnv == "" { + return cr.ServerPort + } + return getServerPort(env) +} + func RunServer() { //======================================= setup routes @@ -345,7 +368,7 @@ func ApiServer(routes []route) { spiderBanner() - e.Logger.Fatal(e.Start(cr.ServicePort)) + e.Logger.Fatal(e.Start(cr.ServerPort)) } //================ API Info @@ -361,13 +384,13 @@ func endpointInfo(c echo.Context) error { cblog.Info("call endpointInfo()") endpointInfo := fmt.Sprintf("\n Multi-Cloud Infrastructure Federation Framework\n") - adminWebURL := "http://" + cr.HostIPorName + cr.ServicePort + "/spider/adminweb" + adminWebURL := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider/adminweb" endpointInfo += fmt.Sprintf(" - AdminWeb: %s\n", adminWebURL) - restEndPoint := "http://" + cr.HostIPorName + cr.ServicePort + "/spider" + restEndPoint := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider" endpointInfo += fmt.Sprintf(" - REST API: %s\n", restEndPoint) - // swaggerURL := "http://" + cr.HostIPorName + cr.ServicePort + "/spider/swagger/index.html" + // swaggerURL := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider/swagger/index.html" // endpointInfo += fmt.Sprintf(" - Swagger : %s\n", swaggerURL) - gRPCServer := "grpc://" + cr.HostIPorName + cr.GoServicePort + gRPCServer := "grpc://" + cr.ServiceIPorName + cr.GoServicePort endpointInfo += fmt.Sprintf(" - Go API: %s\n", gRPCServer) return c.String(http.StatusOK, endpointInfo) @@ -377,14 +400,14 @@ func spiderBanner() { fmt.Println("\n Multi-Cloud Infrastructure Federation Framework") // AdminWeb - adminWebURL := "http://" + cr.HostIPorName + cr.ServicePort + "/spider/adminweb" + adminWebURL := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider/adminweb" fmt.Printf(" - AdminWeb: %s\n", adminWebURL) // REST API EndPoint - restEndPoint := "http://" + cr.HostIPorName + cr.ServicePort + "/spider" + restEndPoint := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider" fmt.Printf(" - REST API: %s\n", restEndPoint) // Swagger - // swaggerURL := "http://" + cr.HostIPorName + cr.ServicePort + "/spider/swagger/index.html" + // swaggerURL := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider/swagger/index.html" // fmt.Printf(" - Swagger : %s\n", swaggerURL) } diff --git a/api-runtime/rest-runtime/admin-web/AdminWeb-CCM-MGMT.go b/api-runtime/rest-runtime/admin-web/AdminWeb-CCM-MGMT.go index c4775ce00..571f13de5 100644 --- a/api-runtime/rest-runtime/admin-web/AdminWeb-CCM-MGMT.go +++ b/api-runtime/rest-runtime/admin-web/AdminWeb-CCM-MGMT.go @@ -108,7 +108,7 @@ func makeDeleteVPCMgmtFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -226,7 +226,7 @@ func makeDeleteSecurityGroupMgmtFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -344,7 +344,7 @@ func makeDeleteKeyPairMgmtFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -462,7 +462,7 @@ func makeDeleteVMMgmtFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } diff --git a/api-runtime/rest-runtime/admin-web/AdminWeb-CCM.go b/api-runtime/rest-runtime/admin-web/AdminWeb-CCM.go index e094bb5aa..5085ac897 100644 --- a/api-runtime/rest-runtime/admin-web/AdminWeb-CCM.go +++ b/api-runtime/rest-runtime/admin-web/AdminWeb-CCM.go @@ -151,7 +151,7 @@ func makePostVPCFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.HostIPorName+cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.ServiceIPorName+cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -178,7 +178,7 @@ func makePostSubnetFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.HostIPorName+cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.ServiceIPorName+cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -202,7 +202,7 @@ func makeDeleteVPCFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.HostIPorName+cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.ServiceIPorName+cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -223,7 +223,7 @@ func makeDeleteSubnetFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.HostIPorName+cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.ServiceIPorName+cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -446,7 +446,7 @@ func makePostSecurityGroupFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.HostIPorName+cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.ServiceIPorName+cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -470,7 +470,7 @@ func makeDeleteSecurityGroupFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.HostIPorName+cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.ServiceIPorName+cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -689,7 +689,7 @@ func makePostKeyPairFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.HostIPorName+cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.ServiceIPorName+cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -714,7 +714,7 @@ func makeDeleteKeyPairFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.HostIPorName+cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.ServiceIPorName+cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -1033,7 +1033,7 @@ func makePostVMFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.HostIPorName+cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.ServiceIPorName+cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -1057,7 +1057,7 @@ func makeDeleteVMFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.HostIPorName+cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://"+cr.ServiceIPorName+cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } diff --git a/api-runtime/rest-runtime/admin-web/AdminWeb-CIM.go b/api-runtime/rest-runtime/admin-web/AdminWeb-CIM.go index 166855658..29ac682bd 100644 --- a/api-runtime/rest-runtime/admin-web/AdminWeb-CIM.go +++ b/api-runtime/rest-runtime/admin-web/AdminWeb-CIM.go @@ -128,7 +128,7 @@ func makePostDriverFunc_js() string { } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -150,7 +150,7 @@ func makeDeleteDriverFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -385,7 +385,7 @@ func makePostCredentialFunc_js() string { } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -407,7 +407,7 @@ func makeDeleteCredentialFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -666,7 +666,7 @@ func makePostRegionFunc_js() string { } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -688,7 +688,7 @@ func makeDeleteRegionFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -1100,7 +1100,7 @@ func makePostConnectionConfigFunc_js() string { } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -1122,7 +1122,7 @@ func makeDeleteConnectionConfigFunc_js() string { location.reload(); } ` - strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.HostIPorName + cr.ServicePort) // cr.ServicePort = ":1024" + strFunc = strings.ReplaceAll(strFunc, "$$SPIDER_SERVER$$", "http://" + cr.ServiceIPorName + cr.ServicePort) // cr.ServicePort = ":1024" return strFunc } @@ -1396,7 +1396,7 @@ func SpiderInfo(c echo.Context) error { ` htmlStr = strings.ReplaceAll(htmlStr, "$$STARTTIME$$", cr.StartTime) - htmlStr = strings.ReplaceAll(htmlStr, "$$APIENDPOINT$$", "http://" + cr.HostIPorName + cr.ServicePort + "/spider") // cr.ServicePort = ":1024" + htmlStr = strings.ReplaceAll(htmlStr, "$$APIENDPOINT$$", "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider") // cr.ServicePort = ":1024" return c.HTML(http.StatusOK, htmlStr) } diff --git a/setup.env b/setup.env index 76ff02d7e..51674fb0e 100644 --- a/setup.env +++ b/setup.env @@ -3,14 +3,15 @@ # root path of cb-spider export CBSPIDER_ROOT=$HOME/go/src/github.com/cloud-barista/cb-spider -### Set Spider server IP to localhost. -# If Spider server is running on a shared public IP Host, -# Users cannot use some functions of AdminWeb. -# In that case, you should set LOCALHOST with ON. -# You can then access all AdminWeb functions through a browser. -# But your browser should be on the same local host. -# default: OFF -export LOCALHOST=OFF +### Set Spider server Address of Service Address +# cf) https://github.com/cloud-barista/cb-spider/wiki/CB-Spider-Service-Address-Configuration +# default: unset SERVER_ADDRESS and unset SERVICE_ADDRESS +# examples for other service port +#export SERVER_ADDRESS=":3000" + +# examples for K8S env +#export SERVER_ADDRESS=":1024" +#export SERVICE_ADDRESS="1.2.3.4:31024" ### Set the library type of Cloud Driver pkg. # ON is a shared library type.