Skip to content

Commit

Permalink
Merge pull request #335 from filecoin-project/feat/add_docker_push
Browse files Browse the repository at this point in the history
Feat/add docker push
  • Loading branch information
simlecode authored Apr 4, 2023
2 parents dd17c5b + 7decea3 commit 879abbd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +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 $(PRIVATE_REGISTRY)/filvenus/venus-messager:$(TAG)
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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")
}
Expand Down

0 comments on commit 879abbd

Please sign in to comment.