-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmakefile
29 lines (22 loc) · 1.03 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
help:
@echo "Voilib Infrastructure "
@echo "\nAvailable targets for development: "
@echo " - make dev-build: build Docker images in development mode "
@echo " - make dev-run: start all services in development mode "
@echo "\nAvailable targets for production: "
@echo " - make prod-build: build Docker images in production mode "
@echo " - make prod-run: start all services in production mode "
test-env-dev:
@echo "checking if .env.dev exists in ./development, you should have created it"
test -s ./development/.env.dev
test-env-prod:
@echo "checking if .env.prod exists in ./production, you should have created it"
test -s ./production/.env.prod
dev-build: test-env-dev
cd development/ && docker compose --env-file=.env.dev build
dev-run: test-env-dev
cd development/ && docker compose --env-file=.env.dev up
prod-build: test-env-prod
cd production/ && docker compose --env-file=.env.prod build
prod-run: test-env-prod
cd production/ && docker compose --env-file=.env.prod up