diff options
author | Cody Hiar <cody@hiar.ca> | 2021-02-03 14:29:24 -0700 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2021-02-03 14:29:24 -0700 |
commit | 2b007a5a500b635ddcfe4b9a512777f3d21fa6b6 (patch) | |
tree | 7a9ccb2d41222fc571c6d08b169d4946e26c130c /Makefile |
Initial commit of project
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aa51099 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +.PHONY: build + +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 + +up: build ## Bring the container up + docker-compose -p slacky up -d + +down: ## Stop the container + docker-compose -p slacky stop + +enter: ## Enter the running container + docker-compose -p slacky exec backend /bin/bash + +clean: down ## Remove stoped containers + docker-compose -p slacky rm -f |