aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index aa51099..e1dc540 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,21 @@
.PHONY: build
+DOCKER_COMPOSE = docker-compose -p slack_mention_reader
+
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: ## Build the Docker image
- docker-compose -p slacky build
+ ${DOCKER_COMPOSE} build
up: build ## Bring the container up
- docker-compose -p slacky up -d
+ ${DOCKER_COMPOSE} up -d
down: ## Stop the container
- docker-compose -p slacky stop
+ ${DOCKER_COMPOSE} stop
enter: ## Enter the running container
- docker-compose -p slacky exec backend /bin/bash
+ ${DOCKER_COMPOSE} exec backend /bin/bash
clean: down ## Remove stoped containers
- docker-compose -p slacky rm -f
+ ${DOCKER_COMPOSE} rm -f