diff options
author | Cody Hiar <cody@hiar.ca> | 2022-02-27 12:35:36 -0700 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2022-02-27 12:35:36 -0700 |
commit | dee5cca9258a4cdc4ccd70ca013bd929ae92d318 (patch) | |
tree | 6d03d136062ea97a854d82b5109d91346313683b /Makefile | |
parent | d2723dd9036da7fb212cc3ef7c1a31d125e14a72 (diff) |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 |