File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ LEDGER_ENABLED ?= true
7
7
SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g')
8
8
BINDIR ?= $(GOPATH ) /bin
9
9
SIMAPP = ./app
10
+ BUILDDIR ?= $(CURDIR ) /build
10
11
11
12
# for dockerized protobuf tools
12
13
DOCKER := $(shell which docker)
@@ -73,6 +74,23 @@ ldflags := $(strip $(ldflags))
73
74
74
75
BUILD_FLAGS := -tags "$(build_tags_comma_sep ) " -ldflags '$(ldflags ) ' -trimpath
75
76
77
+ build-reproducible-amd64 : go.sum $(BUILDDIR ) /
78
+ $(DOCKER ) buildx create --name wasmbuilder || true
79
+ $(DOCKER ) buildx use wasmbuilder
80
+ $(DOCKER ) buildx build \
81
+ --build-arg GO_VERSION=$(GO_VERSION ) \
82
+ --build-arg GIT_VERSION=$(VERSION ) \
83
+ --build-arg GIT_COMMIT=$(COMMIT ) \
84
+ --build-arg RUNNER_IMAGE=alpine:3.16 \
85
+ --platform linux/amd64 \
86
+ -t wasmd:local-amd64 \
87
+ --load \
88
+ -f Dockerfile .
89
+ $(DOCKER ) rm -f temp || true
90
+ $(DOCKER ) create -ti --name temp wasmd:local-amd64
91
+ $(DOCKER ) cp temp:/usr/bin/wasmd $(BUILDDIR ) /wasmd-linux-amd64
92
+ $(DOCKER ) rm -f temp
93
+
76
94
# The below include contains the tools and runsim targets.
77
95
include contrib/devtools/Makefile
78
96
You can’t perform that action at this time.
0 commit comments