aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2021-11-21 15:33:37 -0700
committerCody Hiar <cody@hiar.ca>2021-11-21 15:33:37 -0700
commitf19ebb2def3b4b26e2f0755af29f3b8f7dd2ca99 (patch)
treef484f5d7dda66861b533bb4c0035831e5527682a /Makefile
Initial working version
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..8f6cd99
--- /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 transmission build
+
+up: build ## Bring the container up
+ docker-compose -p transmission up -d
+
+down: ## Stop the container
+ docker-compose -p transmission stop
+
+enter: ## Enter the running container
+ docker-compose -p transmission exec nordvpnd /bin/bash
+
+clean: down ## Remove stoped containers
+ docker-compose -p transmission rm -f