1 PROJECT_NAME?
=sap-e-mobility
4 DOCKER_REGISTRY_USERNAME?
=fraggle0
5 DOCKER_REGISTRY_PASSWORD?
=
6 DOCKER_REGISTRY_NAME?
=$(NAME
)
7 DOCKER_REGISTRY_TAG?
=latest
14 git submodule update
--init
--recursive
17 ifeq '$(SUBMODULES_INIT)' 'true'
18 submodules-init
+= submodule-update
21 $(NAME
): $(submodules-init
)
22 docker-compose
-p
$(PROJECT_NAME
) up
-d
24 $(NAME
)-force: $(submodules-init
)
25 docker-compose
-p
$(PROJECT_NAME
) up
-d
--build
--force-recreate
30 -docker rmi
$(PROJECT_NAME
)-$(NAME
)
33 -docker-compose
-p
$(PROJECT_NAME
) down
35 clean: clean-containers clean-images
38 docker tag
$(PROJECT_NAME
)-$(NAME
) $(DOCKER_REGISTRY_USERNAME
)/$(DOCKER_REGISTRY_NAME
):$(DOCKER_REGISTRY_TAG
)
40 docker-login-registry
:
41 -docker login
-u
'$(DOCKER_REGISTRY_USERNAME)' -p
'$(DOCKER_REGISTRY_PASSWORD)'
43 docker-push-registry
: $(NAME
)-force docker-tag-registry
44 docker push
$(DOCKER_REGISTRY_USERNAME
)/$(DOCKER_REGISTRY_NAME
):$(DOCKER_REGISTRY_TAG
)
47 docker image prune
-a
-f
50 docker volume prune
-f
52 dist-clean
: clean-containers dist-clean-volumes dist-clean-images