Improve Docker makefile

pull/5229/head
Viktor Baranov 3 years ago
parent e972377295
commit 401fd1bd5f
  1. 2
      CHANGELOG.md
  2. 10
      docker/Makefile

@ -28,7 +28,7 @@
- [#5226](https://github.com/blockscout/blockscout/pull/5226) - Update mini-css-extract-plugin, css-minimizer-webpack-plugin packages
- [#5224](https://github.com/blockscout/blockscout/pull/5224) - Webpack config refactoring
- [#5223](https://github.com/blockscout/blockscout/pull/5223) - Migrate fontawesome 5 -> 6
- [#5202](https://github.com/blockscout/blockscout/pull/5202) - Docker setup Makefile release/publish tasks
- [#5202](https://github.com/blockscout/blockscout/pull/5202), [#5229](https://github.com/blockscout/blockscout/pull/5229) - Docker setup Makefile release/publish tasks
- [#5195](https://github.com/blockscout/blockscout/pull/5195) - Add Berlin, London to the list of default EVM versions
- [#5190](https://github.com/blockscout/blockscout/pull/5190) - Set 8545 as default port everywhere except Ganache JSON RPC variant
- [#5189](https://github.com/blockscout/blockscout/pull/5189) - ENV var to manage pending transactions fetcher switching off

@ -2,7 +2,7 @@ SYSTEM := $(shell uname -s)
HOST := host.docker.internal
DOCKER_REPO := blockscout
APP_NAME := blockscout
BS_CONTAINER_IMAGE := ${APP_NAME}
BS_CONTAINER_IMAGE := $(DOCKER_REPO)/$(APP_NAME)
BS_CONTAINER_NAME := blockscout
PG_CONTAINER_IMAGE := postgres:13.6
PG_CONTAINER_NAME := db
@ -473,22 +473,22 @@ publish: docker-login publish-latest publish-version ## publish the `{version}`
publish-latest: tag-latest ## publish the `latest` tagged container to hub
@echo 'publish latest to $(DOCKER_REPO)'
docker push $(DOCKER_REPO)/$(APP_NAME):latest
docker push BS_CONTAINER_IMAGE:latest
publish-version: tag-version ## publish the `{version}` tagged container to hub
@echo 'publish $(TAG) to $(DOCKER_REPO)'
docker push $(DOCKER_REPO)/$(APP_NAME):$(TAG)
docker push BS_CONTAINER_IMAGE:$(TAG)
# Docker tagging
tag: tag-latest tag-version ## Generate container tags for the `{version}` ans `latest` tags
tag-latest: ## Generate container `latest` tag
@echo 'create latest tag'
docker tag $(APP_NAME) $(DOCKER_REPO)/$(APP_NAME):latest
docker tag $(APP_NAME) BS_CONTAINER_IMAGE:latest
tag-version: ## Generate container `{version}` tag
@echo 'create tag $(TAG)'
docker tag $(APP_NAME) $(DOCKER_REPO)/$(APP_NAME):$(TAG)
docker tag $(APP_NAME) BS_CONTAINER_IMAGE:$(TAG)
.PHONY: build \
migrate \

Loading…
Cancel
Save