fix dockerfile (#7393)

This commit is contained in:
Marko 2020-09-25 16:07:05 +02:00 committed by GitHub
parent 06b84d902a
commit fc66cf79d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 7 deletions

View File

@ -430,3 +430,12 @@ jobs:
run: |
./contrib/localnet_liveness.sh 100 5 50 localhost
if: "env.GIT_DIFF != ''"
docker-build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: build docker image
run: |
docker build --pull --rm -f "Dockerfile" -t simapp:latest "."

View File

@ -22,10 +22,8 @@ WORKDIR /go/src/github.com/cosmos/cosmos-sdk
# Add source files
COPY . .
# build Cosmos SDK, remove packages
RUN make build-simd && \
cp ./build/simd /go/bin
# make build-sim-linux ??
# install simapp, remove packages
RUN make simd-linux
# Final image
@ -36,7 +34,7 @@ RUN apk add --update ca-certificates
WORKDIR /root
# Copy over binaries from the build-env
COPY --from=build-env /go/bin/simd /usr/bin/simd
COPY --from=build-env /go/src/github.com/cosmos/cosmos-sdk/build/simd /usr/bin/simd
EXPOSE 26656 26657 1317 9090

View File

@ -84,7 +84,7 @@ include contrib/devtools/Makefile
###############################################################################
build: go.sum
go install -mod=readonly ./...
go build -mod=readonly ./...
simd:
mkdir -p $(BUILDDIR)
@ -122,7 +122,7 @@ build-simd-linux: go.sum
cosmovisor:
$(MAKE) -C cosmovisor cosmovisor
.PHONY: build build-simd build-simd-linux cosmovisor
.PHONY: build simd simd-linux build-simd-all build-simd-linux cosmovisor
mocks: $(MOCKS_DIR)
mockgen -source=client/account_retriever.go -package mocks -destination tests/mocks/account_retriever.go