aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2021-10-08 19:47:23 -0600
committerCody Hiar <cody@hiar.ca>2021-10-08 19:47:23 -0600
commit3908bbe94637fee87bf250e2f2f210b3b2724c90 (patch)
treecd77ac94ced47051eaa5594484e61f5b088a0d18 /Makefile
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5fde356
--- /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 docker_kafka build
+
+up: build ## Bring the container up
+ docker-compose -p docker_kafka up -d
+
+down: ## Stop the container
+ docker-compose -p docker_kafka stop
+
+enter: ## Enter the running container
+ docker-compose -p docker_kafka exec backend /bin/bash
+
+clean: down ## Remove stoped containers
+ docker-compose -p docker_kafka rm -f