X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docker%2FMakefile;h=422fb1fe6fd773eb107e79902c8447615fe98f3f;hb=259ee56d81c663014d8596e2ea8b00382337762b;hp=d3eefbc01330c2219f9bb6267d57619186f307cc;hpb=e0a7120807d9a7c657195cc81927dbb0b5a7e842;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)