-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 858 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 858 Bytes
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
# For Spawning consul Instance on docker
boot-consul:
@ docker run -d -p "8500:8500" -p "8600:8600" --name=discovery hashicorp/consul agent -server -ui -node=server-1 -bootstrap-expect=1 -client="0.0.0.0"
# For building login service from Dockerfile
build-login-service:
@ docker build .\Login-Service\ -t login-service
# For building order service from Dockerfile
build-order-service:
@ docker build .\Order-Service\ -t order-service
# For building product service from Dockerfile
build-product-service:
@ docker build .\Product-Service\ -t product-service
build-images:
@echo "Building Login-Service Image..."
@build-login-service
@echo "Building Order-Service Image..."
@build-order-service
@echo "Building Product-Service Image..."
@build-product-service
@echo "Build Done !"
run-app:
@docker compose up -d
.PHONY: run-app build-images