open-pod/Makefile

20 lines
648 B
Makefile
Raw Normal View History

.PHONY: up
up: ## Start all the services
docker-compose up -d --remove-orphans
.PHONY: start
2020-08-03 21:24:05 +02:00
start: up install-deps ## Start openpod application
docker-compose exec open-pod iex -S mix phx.server
2020-08-03 21:24:05 +02:00
install-deps: container/open-pod ## Install worms dependencies
docker-compose exec open-pod mix deps.get
stop: ## Shoutdown services
docker-compose down -v
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
2020-08-03 21:24:05 +02:00
container/%:
@docker ps -q --no-trunc --filter status=running | grep $$(docker-compose ps -q $*) >/dev/null 2>&1 || docker-compose up -d $*