-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡️ IMPROVE: rename docker compose files and update make command
- Loading branch information
Showing
4 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
##@ [Commands] | ||
##@ [Utility Commands] | ||
|
||
# @see https://stackoverflow.com/a/43076457 | ||
.PHONY: execute-in-container | ||
execute-in-container: ## Execute a command in a container. E.g. via "make execute-in-container DOCKER_SERVICE_NAME=traefik COMMAND="echo 'hello'" | ||
@$(if $(DOCKER_SERVICE_NAME),,$(error DOCKER_SERVICE_NAME is undefined)) | ||
@$(if $(COMMAND),,$(error COMMAND is undefined)) | ||
$(EXECUTE_IN_ANY_CONTAINER) $(COMMAND) | ||
|
||
.PHONY: traefik-shell | ||
traefik-shell: ## Execute shell script in Traefik container with arguments ARGS="pwd" | ||
@$(EXECUTE_IN_TRAEFIK_CONTAINER) $(ARGS); | ||
|
||
.PHONY: logger-shell | ||
logger-shell: ## Execute shell script in Logger container with arguments ARGS="pwd" | ||
@$(EXECUTE_IN_LOGGER_CONTAINER) $(ARGS); | ||
|
||
.PHONY: socket-shell | ||
socket-shell: ## Execute shell script in Socket container with arguments ARGS="pwd" | ||
@$(EXECUTE_IN_DOCKER_SOCKET_CONTAINER) $(ARGS); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.