X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docker%2FMakefile;h=388c705cf7b467815f533de532a8fbeb747e4664;hb=293c552db1b65507cd2b96e0b7ae41fa59f8fc1e;hp=951fda692bc76eb05aae66e9a4e2080ddba60ff7;hpb=251fff5c7fd6f92c1f1acb921233c7e9c7c89003;p=e-mobility-charging-stations-simulator.git diff --git a/docker/Makefile b/docker/Makefile index 951fda69..388c705c 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -1,9 +1,9 @@ PROJECT_NAME?=evse -NAME:=emobility-charging-stations-simulator +NAME:=e-mobility-charging-stations-simulator SUBMODULES_INIT?=false DOCKER_ECR_ACCOUNT_ID?=166296450311 DOCKER_ECR_REGION?=eu-west-3 -DOCKER_ECR_REGISTRY_NAME?=emobility-charging-stations-simulator +DOCKER_ECR_REGISTRY_NAME?=e-mobility-charging-stations-simulator DOCKER_ECR_TAG?=latest .PHONY: all @@ -27,7 +27,7 @@ $(NAME)-force: $(submodules-init) all: $(NAME) clean-images: - -docker rmi $(PROJECT_NAME)_$(NAME) + -docker rmi $(PROJECT_NAME)-$(NAME) clean-containers: -docker-compose -p $(PROJECT_NAME) down @@ -35,7 +35,7 @@ clean-containers: clean: clean-containers clean-images docker-tag-ecr: - docker tag $(PROJECT_NAME)_$(NAME) $(DOCKER_ECR_ACCOUNT_ID).dkr.ecr.$(DOCKER_ECR_REGION).amazonaws.com/$(DOCKER_ECR_REGISTRY_NAME):$(DOCKER_ECR_TAG) + docker tag $(PROJECT_NAME)-$(NAME) $(DOCKER_ECR_ACCOUNT_ID).dkr.ecr.$(DOCKER_ECR_REGION).amazonaws.com/$(DOCKER_ECR_REGISTRY_NAME):$(DOCKER_ECR_TAG) docker-push-ecr: $(NAME)-force docker-tag-ecr aws ecr get-login-password --region $(DOCKER_ECR_REGION) | docker login --username AWS --password-stdin $(DOCKER_ECR_ACCOUNT_ID).dkr.ecr.$(DOCKER_ECR_REGION).amazonaws.com/$(DOCKER_ECR_REGISTRY_NAME)