break out compose and docker files for compile vs no-compile options

This commit is contained in:
lza_menace
2020-10-05 15:37:59 -07:00
parent 74d800614d
commit 7d31fda77d
6 changed files with 136 additions and 10 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
.PHONY: format help
# Help system from https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
up: ## Build and run the required containers by fetching binaries
docker-compose -f docker-compose.nocompile.yaml up -d
up-full: ## Build and run the required containers by compiling source
docker-compose -f docker-compose.compile.yaml up -d
down: ## Stop the containers
docker-compose -f docker-compose.nocompile.yaml up -d
down-full: ## Stop the containers
docker-compose -f docker-compose.compile.yaml up -d
logs: ## Get logs from the containers
docker-compose -f docker-compose.nocompile.yaml up -d
logs-full: ## Get logs from the containers
docker-compose -f docker-compose.compile.yaml up -d