fix dockerfile (#7393)
This commit is contained in:
parent
06b84d902a
commit
fc66cf79d8
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@ -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 "."
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
4
Makefile
4
Makefile
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user