-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
45 lines (35 loc) · 1.08 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
all:
make cra image=dashboard &&\
make next image=client &&\
make express image=auth &&\
make express image=bucket &&\
make express image=health &&\
make image image=proxy-balancer base=proxy-balancer
image=proxy-balancer
base=express
image:
docker build -f .docker/Dockerfile.$(base) --build-arg MICROSERVICE_NAME=$(image) -t $(image) .
image=auth
express:
make image image=$(image) base=express
image=dashboard
cra:
make image image=$(image) base=cra
image=client
next:
make image image=$(image) base=next
compose:
docker compose up --build --force-recreate -d --remove-orphans
image=auth
test:
docker build -f .docker/Dockerfile.test.base -t test-$(image) --build-arg MICROSERVICE_NAME=$(image) .
image=auth
update:
docker compose up --no-deps -d $(image) --build --force-recreate
image=auth
update-dev:
cd dev && docker compose up --no-deps -d $(image) --build --force-recreate
compose-dev:
cd dev && docker compose up --build --force-recreate -d --remove-orphans
compose-staging:
docker compose -f docker-compose.staging.yml up --build --force-recreate -d --remove-orphans