Skip to content

Commit

Permalink
Merge pull request #131 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 af7c60a + dce8673 commit 6fe40e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,9 @@ 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-wallet -t venus-wallet .
docker tag venus-wallet filvenus/venus-wallet:$(TAG)
docker tag venus-wallet $(PRIVATE_REGISTRY)/filvenus/venus-wallet:$(TAG)
.PHONY: docker

docker-push: docker
docker push $(PRIVATE_REGISTRY)/filvenus/venus-wallet:$(TAG)

2 changes: 2 additions & 0 deletions cmd/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"strings"
"syscall"

"github.com/etherlabsio/healthcheck/v2"
"github.com/filecoin-project/go-jsonrpc"
"github.com/filecoin-project/go-jsonrpc/auth"
"github.com/filecoin-project/venus-wallet/api"
Expand Down Expand Up @@ -48,6 +49,7 @@ func ServeRPC(a api.IFullAPI, stop build.StopFunc, addr string, sigChan chan os.
Next: rpcServer.ServeHTTP,
}
http.Handle("/rpc/v0", CorsMiddleWare(ah))
http.Handle("/healthcheck", healthcheck.Handler())
ma, err := multiaddr.NewMultiaddr(addr)
if err != nil {
return nil
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require (
contrib.go.opencensus.io/exporter/jaeger v0.2.1
github.com/BurntSushi/toml v1.2.1
github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef
github.com/etherlabsio/healthcheck/v2 v2.0.0
github.com/filecoin-project/go-address v1.1.0
github.com/filecoin-project/go-cbor-util v0.0.1
github.com/filecoin-project/go-crypto v0.0.1
Expand Down Expand Up @@ -63,7 +64,6 @@ require (
github.com/dgraph-io/ristretto v0.1.0 // indirect
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/etherlabsio/healthcheck/v2 v2.0.0 // indirect
github.com/filecoin-project/go-amt-ipld/v2 v2.1.1-0.20201006184820-924ee87a1349 // indirect
github.com/filecoin-project/go-amt-ipld/v3 v3.1.0 // indirect
github.com/filecoin-project/go-amt-ipld/v4 v4.0.0 // indirect
Expand Down

0 comments on commit 6fe40e0

Please sign in to comment.