X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docker%2FMakefile;h=422fb1fe6fd773eb107e79902c8447615fe98f3f;hb=d2971a4b3d274f5b79df906a335c6c3b6725b025;hp=d3eefbc01330c2219f9bb6267d57619186f307cc;hpb=0f431c22b31c87ec5cd436cb983c61236c475d4f;p=e-mobility-charging-stations-simulator.git diff --git a/docker/Makefile b/docker/Makefile index d3eefbc0..422fb1fe 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -1,8 +1,9 @@ PROJECT_NAME?=evse -NAME:=simulator +NAME:=charging-stations-simulator +SUBMODULES_INIT?=false DOCKER_ECR_ACCOUNT_ID?=166296450311 DOCKER_ECR_REGION?=eu-west-3 -DOCKER_ECR_REGISTRY_NAME?=ev_simulator +DOCKER_ECR_REGISTRY_NAME?=charging_stations_simulator DOCKER_ECR_TAG?=latest .PHONY: all @@ -12,10 +13,15 @@ default: all submodule-update: git submodule update --init --recursive -$(NAME): submodule-update +submodules-init= +ifeq '$(SUBMODULES_INIT)' 'true' + submodules-init += submodule-update +endif + +$(NAME): $(submodules-init) docker-compose -p $(PROJECT_NAME) up -d -$(NAME)-force: submodule-update +$(NAME)-force: $(submodules-init) docker-compose -p $(PROJECT_NAME) up -d --build --force-recreate all: $(NAME)