Skip to content

Commit

Permalink
automate env file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
beasteers committed Oct 10, 2023
1 parent 5954732 commit fcf37e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit fcf37e3

Please sign in to comment.