aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2019-02-18 20:17:47 -0700
committerCody Hiar <codyfh@gmail.com>2019-02-18 20:17:47 -0700
commit71a955a79495e09ff8a91b46f68c79e17447bd23 (patch)
tree9d9dc928f4150cc3db01e3010d1e4d241cae3750 /Makefile
parent0685bd8dbb6f06a4581de7cd3345571004b001c3 (diff)
Cleaning up code
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..accd178
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+.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 firefox build
+
+up: build ## Bring the container up
+ xhost local:1000
+ docker-compose -p firefox up -d
+
+down: ## Stop the container
+ docker-compose -p firefox stop
+
+enter: ## Enter the running container
+ docker-compose -p firefox exec backend /bin/bash
+
+clean: down ## Remove stoped containers
+ docker-compose -p firefox rm
+