fix erroring of docker-build (#598)

This commit is contained in:
Daniel Choi 2020-11-16 01:13:51 -08:00 committed by GitHub
parent 71090323c0
commit 26b3af7a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,9 +154,9 @@ clean:
docker-build: docker-build:
docker build -t ${DOCKER_IMAGE}:${DOCKER_TAG} . docker build -t ${DOCKER_IMAGE}:${DOCKER_TAG} .
docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:latest docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:latest
docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:${COMMIT_HASH} # docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:${COMMIT_HASH}
# update old container # update old container
docker rm ethermint docker rm ethermint || true
# create a new container from the latest image # create a new container from the latest image
docker create --name ethermint -t -i cosmos/ethermint:latest ethermint docker create --name ethermint -t -i cosmos/ethermint:latest ethermint
# move the binaries to the ./build directory # move the binaries to the ./build directory