File tree Expand file tree Collapse file tree 21 files changed +468
-156
lines changed Expand file tree Collapse file tree 21 files changed +468
-156
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 38
38
.PHONY : docker
39
39
docker :
40
40
@docker build -t adservice:latest .
41
- @docker tag adservice:latest xpunch /dubbo-go-demo-adservice:v1.0.0
42
- @docker push xpunch /dubbo-go-demo-adservice:v1.0.0
41
+ @docker tag adservice:latest sca-registry.cn-hangzhou.cr.aliyuncs.com /dubbo/online-boutique-ad-service:1.0-go
42
+ @docker push sca-registry.cn-hangzhou.cr.aliyuncs.com /dubbo/online-boutique-ad-service:1.0-go
Original file line number Diff line number Diff line change @@ -25,14 +25,20 @@ import (
25
25
"github.com/apache/dubbo-go-samples/online_boutique_demo/adservice/handler"
26
26
hipstershop "github.com/apache/dubbo-go-samples/online_boutique_demo/adservice/proto"
27
27
"github.com/dubbogo/gost/log/logger"
28
+ "os"
28
29
)
29
30
30
31
func main () {
32
+ regAddr := os .Getenv ("DUBBO_REGISTRY_ADDRESS" )
33
+ if regAddr == "" {
34
+ regAddr = "127.0.0.1:2181"
35
+ }
36
+
31
37
ins , err := dubbo .NewInstance (
32
38
dubbo .WithName ("adservice" ),
33
39
dubbo .WithRegistry (
34
40
registry .WithZookeeper (),
35
- registry .WithAddress ("127.0.0.1:2181" ),
41
+ registry .WithAddress (regAddr ),
36
42
),
37
43
dubbo .WithProtocol (
38
44
protocol .WithTriple (),
Original file line number Diff line number Diff line change 37
37
38
38
.PHONY : docker
39
39
docker :
40
- @docker build -t cartservice :latest .
41
- @docker tag cartservice:latest xpunch /dubbo-go-demo-cartservice:v1.0.0
42
- @docker push xpunch /dubbo-go-demo-cartservice:v1.0.0
40
+ @docker build -t cartService :latest .
41
+ @docker tag cartservice:latest sca-registry.cn-hangzhou.cr.aliyuncs.com /dubbo/online-boutique-cart-service:1.0-go
42
+ @docker push sca-registry.cn-hangzhou.cr.aliyuncs.com /dubbo/online-boutique-cart-service:1.0-go
Original file line number Diff line number Diff line change @@ -26,15 +26,20 @@ import (
26
26
hipstershop "github.com/apache/dubbo-go-samples/online_boutique_demo/cartservice/proto"
27
27
"github.com/dubbogo/gost/log/logger"
28
28
_ "github.com/dubbogo/gost/log/logger"
29
+ "os"
29
30
)
30
31
31
32
func main () {
33
+ regAddr := os .Getenv ("DUBBO_REGISTRY_ADDRESS" )
34
+ if regAddr == "" {
35
+ regAddr = "127.0.0.1:2181"
36
+ }
32
37
33
38
ins , err := dubbo .NewInstance (
34
39
dubbo .WithName ("cartservice" ),
35
40
dubbo .WithRegistry (
36
41
registry .WithZookeeper (),
37
- registry .WithAddress ("127.0.0.1:2181" ),
42
+ registry .WithAddress (regAddr ),
38
43
),
39
44
dubbo .WithProtocol (
40
45
protocol .WithTriple (),
Original file line number Diff line number Diff line change 38
38
.PHONY : docker
39
39
docker :
40
40
@docker build -t checkoutservice:latest .
41
- @docker tag checkoutservice:latest xpunch /dubbo-go-demo-checkoutservice:v1.0.0
42
- @docker push xpunch /dubbo-go-demo-checkoutservice:v1.0.0
41
+ @docker tag checkoutservice:latest sca-registry.cn-hangzhou.cr.aliyuncs.com /dubbo/online-boutique-checkout-service:1.0-go
42
+ @docker push sca-registry.cn-hangzhou.cr.aliyuncs.com /dubbo/online-boutique-checkout-service:1.0-go
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
"github.com/apache/dubbo-go-samples/online_boutique_demo/checkoutservice/handler"
26
26
pb "github.com/apache/dubbo-go-samples/online_boutique_demo/checkoutservice/proto"
27
27
"github.com/dubbogo/gost/log/logger"
28
+ "os"
28
29
)
29
30
30
31
var (
@@ -33,12 +34,16 @@ var (
33
34
)
34
35
35
36
func main () {
37
+ regAddr := os .Getenv ("DUBBO_REGISTRY_ADDRESS" )
38
+ if regAddr == "" {
39
+ regAddr = "127.0.0.1:2181"
40
+ }
36
41
37
42
ins , err := dubbo .NewInstance (
38
43
dubbo .WithName (name ),
39
44
dubbo .WithRegistry (
40
45
registry .WithZookeeper (),
41
- registry .WithAddress ("127.0.0.1:2181" ),
46
+ registry .WithAddress (regAddr ),
42
47
),
43
48
dubbo .WithProtocol (
44
49
protocol .WithTriple (),
Original file line number Diff line number Diff line change 38
38
.PHONY : docker
39
39
docker :
40
40
@docker build -t currencyservice:latest .
41
- @docker tag currencyservice:latest xpunch /dubbo-go-demo-currencyservice:v1.0.0
42
- @docker push xpunch /dubbo-go-demo-currencyservice:v1.0.0
41
+ @docker tag currencyservice:latest sca-registry.cn-hangzhou.cr.aliyuncs.com /dubbo/online-boutique-currency-service:1.0-go
42
+ @docker push sca-registry.cn-hangzhou.cr.aliyuncs.com /dubbo/online-boutique-currency-service:1.0-go
Original file line number Diff line number Diff line change @@ -25,15 +25,20 @@ import (
25
25
"github.com/apache/dubbo-go-samples/online_boutique_demo/currencyservice/handler"
26
26
hipstershop "github.com/apache/dubbo-go-samples/online_boutique_demo/currencyservice/proto"
27
27
"github.com/dubbogo/gost/log/logger"
28
+ "os"
28
29
)
29
30
30
31
func main () {
32
+ regAddr := os .Getenv ("DUBBO_REGISTRY_ADDRESS" )
33
+ if regAddr == "" {
34
+ regAddr = "127.0.0.1:2181"
35
+ }
31
36
32
37
ins , err := dubbo .NewInstance (
33
38
dubbo .WithName ("currencyservice" ),
34
39
dubbo .WithRegistry (
35
40
registry .WithZookeeper (),
36
- registry .WithAddress ("127.0.0.1:2181" ),
41
+ registry .WithAddress (regAddr ),
37
42
),
38
43
dubbo .WithProtocol (
39
44
protocol .WithTriple (),
Original file line number Diff line number Diff line change 38
38
.PHONY : docker
39
39
docker :
40
40
@docker build -t emailservice:latest .
41
- @docker tag emailservice:latest xpunch /dubbo-go-demo-emailservice:v1.0.0
42
- @docker push xpunch /dubbo-go-demo-emailservice:v1.0.0
41
+ @docker tag emailservice:latest sca-registry.cn-hangzhou.cr.aliyuncs.com /dubbo/online-boutique-email-service:1.0-go
42
+ @docker push sca-registry.cn-hangzhou.cr.aliyuncs.com /dubbo/online-boutique-email-service:1.0-go
You can’t perform that action at this time.
0 commit comments