diff --git a/DOCKER/Dockerfile b/DOCKER/Dockerfile index 2785d7e24..a4792981d 100644 --- a/DOCKER/Dockerfile +++ b/DOCKER/Dockerfile @@ -2,7 +2,7 @@ FROM golang:1.17-alpine as builder RUN apk update && \ apk upgrade && \ - apk --no-cache add make + apk --no-cache add make git COPY / /tendermint WORKDIR /tendermint RUN make build-linux @@ -53,4 +53,3 @@ CMD ["start"] # Expose the data directory as a volume since there's mutable state in there VOLUME [ "$TMHOME" ] - diff --git a/DOCKER/build.sh b/DOCKER/build.sh index 2aa42a6cd..0faea11c8 100755 --- a/DOCKER/build.sh +++ b/DOCKER/build.sh @@ -3,7 +3,7 @@ set -e # Get the tag from the version, or try to figure it out. if [ -z "$TAG" ]; then - TAG=$(awk -F\" '/TMCoreSemVer =/ { print $2; exit }' < ../version/version.go) + TAG=$(awk -F\" '/TMVersionDefault =/ { print $2; exit }' < ../version/version.go) fi if [ -z "$TAG" ]; then echo "Please specify a tag." diff --git a/DOCKER/push.sh b/DOCKER/push.sh index f228406d4..040704bfe 100755 --- a/DOCKER/push.sh +++ b/DOCKER/push.sh @@ -3,7 +3,7 @@ set -e # Get the tag from the version, or try to figure it out. if [ -z "$TAG" ]; then - TAG=$(awk -F\" '/TMCoreSemVer =/ { print $2; exit }' < ../version/version.go) + TAG=$(awk -F\" '/TMVersionDefault =/ { print $2; exit }' < ../version/version.go) fi if [ -z "$TAG" ]; then echo "Please specify a tag." diff --git a/Makefile b/Makefile index 13d6ada56..85cd3202d 100644 --- a/Makefile +++ b/Makefile @@ -243,10 +243,8 @@ build-docs: ### Docker image ### ############################################################################### -build-docker: build-linux - cp $(BUILDDIR)/tendermint DOCKER/tendermint +build-docker: docker build --label=tendermint --tag="tendermint/tendermint" -f DOCKER/Dockerfile . - rm -rf DOCKER/tendermint .PHONY: build-docker @@ -343,4 +341,3 @@ split-test-packages:$(BUILDDIR)/packages.txt split -d -n l/$(NUM_SPLIT) $< $<. test-group-%:split-test-packages cat $(BUILDDIR)/packages.txt.$* | xargs go test -mod=readonly -timeout=5m -race -coverprofile=$(BUILDDIR)/$*.profile.out -