docker attach

This commit is contained in:
Yann Autissier
2022-11-19 01:03:37 +00:00
parent 96567c54dc
commit 910498f049
11 changed files with 160 additions and 135 deletions
+11
View File
@@ -1,6 +1,17 @@
##
# COMMON
# target attach: Exec ARGS in docker SERVICE
# on local host
.PHONY: attach
attach: SERVICE ?= $(DOCKER_SERVICE)
attach: ## Attach to docker SERVICE
$(eval attach := $(COMPOSE_PROJECT_NAME)-$(SERVICE))
$(if $(call docker-running,^$(attach)-1$), \
$(call docker-attach,$(attach)-1) \
, $(call docker-attach,$(attach)) \
)
# target bootstrap: Configure system
# on local host
.PHONY: bootstrap app-bootstrap