From 46e5962541973ee8e006fd63ccbdfe634759552c Mon Sep 17 00:00:00 2001 From: hunjixin <1084400399@qq.com> Date: Wed, 22 Feb 2023 17:27:19 +0800 Subject: [PATCH 1/3] feat: add disable push flag --- main.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.go b/main.go index 4fc13c6b..c0d24c8b 100644 --- a/main.go +++ b/main.go @@ -86,6 +86,10 @@ var runCmd = &cli.Command{ }, // node + &cli.BoolFlag{ + Name: "disable-push", + Usage: "disable push messager function, Warn only one instance can used to push message", + }, &cli.StringFlag{ Name: "node-url", Usage: "url for connection lotus/venus", @@ -342,6 +346,11 @@ func updateFlag(cfg *config.Config, ctx *cli.Context) error { cfg.API.Address = ctx.String("listen") } + if ctx.IsSet("disable-push") { + cfg.MessageService.SkipPushMessage = true + cfg.MessageService.SkipProcessHead = true + } + if ctx.IsSet("auth-url") { cfg.JWT.AuthURL = ctx.String("auth-url") } From 727f1d5992783a9f6b841dc590e9005cfde41e28 Mon Sep 17 00:00:00 2001 From: hunjixin <1084400399@qq.com> Date: Fri, 24 Mar 2023 11:27:30 +0800 Subject: [PATCH 2/3] feat: add docker push --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index f95128ce..86ac2e30 100644 --- a/Makefile +++ b/Makefile @@ -34,3 +34,6 @@ docker: curl -O https://raw.githubusercontent.com/filecoin-project/venus-docs/master/script/docker/dockerfile docker build --build-arg https_proxy=$(BUILD_DOCKER_PROXY) --build-arg BUILD_TARGET=venus-messager -t venus-messager . docker tag venus-messager filvenus/venus-messager:$(TAG) + +docker-push: docker + docker push filvenus/venus-messager:$(TAG) From 7decea30b75ed6b05b98a050211f404b0e5a5157 Mon Sep 17 00:00:00 2001 From: hunjixin <1084400399@qq.com> Date: Tue, 28 Mar 2023 11:52:05 +0800 Subject: [PATCH 3/3] feat: add private registry tag --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 86ac2e30..cc24c753 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ TAG:=test docker: curl -O https://raw.githubusercontent.com/filecoin-project/venus-docs/master/script/docker/dockerfile docker build --build-arg https_proxy=$(BUILD_DOCKER_PROXY) --build-arg BUILD_TARGET=venus-messager -t venus-messager . - docker tag venus-messager filvenus/venus-messager:$(TAG) + docker tag venus-messager $(PRIVATE_REGISTRY)/filvenus/venus-messager:$(TAG) docker-push: docker - docker push filvenus/venus-messager:$(TAG) + docker push $(PRIVATE_REGISTRY)/filvenus/venus-messager:$(TAG)