From fcf37e3ec89e8ab62b6043bb64fa7f450ed253c4 Mon Sep 17 00:00:00 2001 From: Bea Steers Date: Tue, 10 Oct 2023 10:49:35 -0400 Subject: [PATCH] automate env file creation --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ff8f728..89581c4 100644 --- a/Makefile +++ b/Makefile @@ -4,11 +4,12 @@ help: ## PTG API Server @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) - +env: ## create env file + [ ! -f .env ] && cp .env.sample .env full: https api record ml dash ## bring the full system up -https: ## bring up the https reverse proxy +https: env ## bring up the https reverse proxy docker-compose -f docker-compose.https.yaml up -d --build api: base ## bring just the api services up @@ -24,10 +25,10 @@ ml: base baseml ## bring up the recording containers cd ptgctl && docker build -f Dockerfile.gpu -t ptgctl:gpu . cd ptg-server-ml && docker-compose -f docker-compose.ml.yaml up -d --build -dash: ## bring up the dashboard containers +dash: env ## bring up the dashboard containers cd tim-dashboard && ls && docker-compose --env-file ../.env -f docker-compose.prod.yml up -d --build && cd - -base: ## build the ptgctl container +base: env ## build the ptgctl container cp .env ptg-server-ml/.env docker build -t ptgctl -t ptgctl:latest ./ptgctl