aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2023-08-29 16:21:55 -0600
committerCody Hiar <cody@hiar.ca>2023-08-29 16:21:55 -0600
commitbee010b99699723432435646486dc8e0ecebbea3 (patch)
tree73db56d751a8aad14ca4bce90c2421047eccd66f /Makefile
Very basic example workingHEADmaster
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..4a793ab
--- /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-spark build
+
+up: build ## Bring the container up
+ docker-compose -p docker-spark up -d
+
+down: ## Stop the container
+ docker-compose -p docker-spark stop
+
+enter: ## Enter the running container
+ docker-compose -p docker-spark exec backend /bin/bash
+
+clean: down ## Remove stoped containers
+ docker-compose -p docker-spark rm -f