From 99184b8c19cbe70b08ca8ab339685bf8b0b7d17d Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 2 Jan 2019 10:08:53 -0700 Subject: Initial commit of working files --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d5d2099 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +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 jenkins_docker build + +up: build ## Bring the container up + docker-compose -p jenkins_docker up -d + +down: ## Stop the container + docker-compose -p jenkins_docker stop + +enter: ## Enter the running container + docker-compose -p jenkins_docker exec backend /bin/bash + +clean: down ## Remove stoped containers + docker-compose -p jenkins_docker rm -- cgit v1.2.3