diff options
author | Cody Hiar <codyfh@gmail.com> | 2019-01-02 10:08:53 -0700 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2019-01-02 10:08:53 -0700 |
commit | 99184b8c19cbe70b08ca8ab339685bf8b0b7d17d (patch) | |
tree | a0899b1b2c7731ef3da128abd64dbfc715060930 /Makefile |
Initial commit of working files
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
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 |