Commit fc66cf7 1 parent 06b84d9 commit fc66cf7 Copy full SHA for fc66cf7
File tree 3 files changed +14
-7
lines changed
3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -430,3 +430,12 @@ jobs:
430
430
run : |
431
431
./contrib/localnet_liveness.sh 100 5 50 localhost
432
432
if : " env.GIT_DIFF != ''"
433
+
434
+ docker-build :
435
+ runs-on : ubuntu-latest
436
+ timeout-minutes : 10
437
+ steps :
438
+ - uses : actions/checkout@v2
439
+ - name : build docker image
440
+ run : |
441
+ docker build --pull --rm -f "Dockerfile" -t simapp:latest "."
Original file line number Diff line number Diff line change @@ -22,10 +22,8 @@ WORKDIR /go/src/github.com/cosmos/cosmos-sdk
22
22
# Add source files
23
23
COPY . .
24
24
25
- # build Cosmos SDK, remove packages
26
- RUN make build-simd && \
27
- cp ./build/simd /go/bin
28
- # make build-sim-linux ??
25
+ # install simapp, remove packages
26
+ RUN make simd-linux
29
27
30
28
31
29
# Final image
@@ -36,7 +34,7 @@ RUN apk add --update ca-certificates
36
34
WORKDIR /root
37
35
38
36
# Copy over binaries from the build-env
39
- COPY --from=build-env /go/bin /simd /usr/bin/simd
37
+ COPY --from=build-env /go/src/github.com/cosmos/cosmos-sdk/build /simd /usr/bin/simd
40
38
41
39
EXPOSE 26656 26657 1317 9090
42
40
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ include contrib/devtools/Makefile
84
84
# ##############################################################################
85
85
86
86
build : go.sum
87
- go install -mod=readonly ./...
87
+ go build -mod=readonly ./...
88
88
89
89
simd :
90
90
mkdir -p $(BUILDDIR )
@@ -122,7 +122,7 @@ build-simd-linux: go.sum
122
122
cosmovisor :
123
123
$(MAKE ) -C cosmovisor cosmovisor
124
124
125
- .PHONY : build build-simd build-simd-linux cosmovisor
125
+ .PHONY : build simd simd-linux build-simd-all build-simd-linux cosmovisor
126
126
127
127
mocks : $(MOCKS_DIR )
128
128
mockgen -source=client/account_retriever.go -package mocks -destination tests/mocks/account_retriever.go
You can’t perform that action at this time.
0 commit comments