Browse Source

Fix Dockerfile and scripts

pull/8161/head
Simon Kirillov 3 years ago
parent
commit
fb78dce904
4 changed files with 4 additions and 8 deletions
  1. +1
    -2
      DOCKER/Dockerfile
  2. +1
    -1
      DOCKER/build.sh
  3. +1
    -1
      DOCKER/push.sh
  4. +1
    -4
      Makefile

+ 1
- 2
DOCKER/Dockerfile View File

@ -2,7 +2,7 @@
FROM golang:1.17-alpine as builder FROM golang:1.17-alpine as builder
RUN apk update && \ RUN apk update && \
apk upgrade && \ apk upgrade && \
apk --no-cache add make
apk --no-cache add make git
COPY / /tendermint COPY / /tendermint
WORKDIR /tendermint WORKDIR /tendermint
RUN make build-linux RUN make build-linux
@ -53,4 +53,3 @@ CMD ["start"]
# Expose the data directory as a volume since there's mutable state in there # Expose the data directory as a volume since there's mutable state in there
VOLUME [ "$TMHOME" ] VOLUME [ "$TMHOME" ]

+ 1
- 1
DOCKER/build.sh View File

@ -3,7 +3,7 @@ set -e
# Get the tag from the version, or try to figure it out. # Get the tag from the version, or try to figure it out.
if [ -z "$TAG" ]; then 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 fi
if [ -z "$TAG" ]; then if [ -z "$TAG" ]; then
echo "Please specify a tag." echo "Please specify a tag."


+ 1
- 1
DOCKER/push.sh View File

@ -3,7 +3,7 @@ set -e
# Get the tag from the version, or try to figure it out. # Get the tag from the version, or try to figure it out.
if [ -z "$TAG" ]; then 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 fi
if [ -z "$TAG" ]; then if [ -z "$TAG" ]; then
echo "Please specify a tag." echo "Please specify a tag."


+ 1
- 4
Makefile View File

@ -243,10 +243,8 @@ build-docs:
### Docker image ### ### Docker image ###
############################################################################### ###############################################################################
build-docker: build-linux
cp $(BUILDDIR)/tendermint DOCKER/tendermint
build-docker:
docker build --label=tendermint --tag="tendermint/tendermint" -f DOCKER/Dockerfile . docker build --label=tendermint --tag="tendermint/tendermint" -f DOCKER/Dockerfile .
rm -rf DOCKER/tendermint
.PHONY: build-docker .PHONY: build-docker
@ -343,4 +341,3 @@ split-test-packages:$(BUILDDIR)/packages.txt
split -d -n l/$(NUM_SPLIT) $< $<. split -d -n l/$(NUM_SPLIT) $< $<.
test-group-%:split-test-packages test-group-%:split-test-packages
cat $(BUILDDIR)/packages.txt.$* | xargs go test -mod=readonly -timeout=5m -race -coverprofile=$(BUILDDIR)/$*.profile.out cat $(BUILDDIR)/packages.txt.$* | xargs go test -mod=readonly -timeout=5m -race -coverprofile=$(BUILDDIR)/$*.profile.out

Loading…
Cancel
Save