Skip to content

Commit fc66cf7

Browse files
authored
fix dockerfile (#7393)
1 parent 06b84d9 commit fc66cf7

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.github/workflows/test.yml

+9
Original file line numberDiff line numberDiff line change
@@ -430,3 +430,12 @@ jobs:
430430
run: |
431431
./contrib/localnet_liveness.sh 100 5 50 localhost
432432
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 "."

Dockerfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ WORKDIR /go/src/github.com/cosmos/cosmos-sdk
2222
# Add source files
2323
COPY . .
2424

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
2927

3028

3129
# Final image
@@ -36,7 +34,7 @@ RUN apk add --update ca-certificates
3634
WORKDIR /root
3735

3836
# 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
4038

4139
EXPOSE 26656 26657 1317 9090
4240

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ include contrib/devtools/Makefile
8484
###############################################################################
8585

8686
build: go.sum
87-
go install -mod=readonly ./...
87+
go build -mod=readonly ./...
8888

8989
simd:
9090
mkdir -p $(BUILDDIR)
@@ -122,7 +122,7 @@ build-simd-linux: go.sum
122122
cosmovisor:
123123
$(MAKE) -C cosmovisor cosmovisor
124124

125-
.PHONY: build build-simd build-simd-linux cosmovisor
125+
.PHONY: build simd simd-linux build-simd-all build-simd-linux cosmovisor
126126

127127
mocks: $(MOCKS_DIR)
128128
mockgen -source=client/account_retriever.go -package mocks -destination tests/mocks/account_retriever.go

0 commit comments

Comments
 (0)