-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 1.22 KB
/
Makefile
File metadata and controls
41 lines (31 loc) · 1.22 KB
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
# Variables
DOCKER_REPO = subashreedinesh
TAG = latest
# Service names (corresponding to folders in backend/services/)
SERVICES = api-service room-service user-service code-service socket-service frontend
# Default target: Build and push all services
.PHONY: all
all: $(SERVICES)
# Targets for each service
api-service:
docker build -t $(DOCKER_REPO)/api-gateway:$(TAG) ./backend/services/api-gateway
docker push $(DOCKER_REPO)/api-gateway:$(TAG)
room-service:
docker build -t $(DOCKER_REPO)/room-service:$(TAG) ./backend/services/room-service
docker push $(DOCKER_REPO)/room-service:$(TAG)
user-service:
docker build -t $(DOCKER_REPO)/user-service:$(TAG) ./backend/services/user-service
docker push $(DOCKER_REPO)/user-service:$(TAG)
code-service:
docker build -t $(DOCKER_REPO)/code-service:$(TAG) ./backend/services/code-service
docker push $(DOCKER_REPO)/code-service:$(TAG)
socket-service:
docker build -t $(DOCKER_REPO)/socket-service:$(TAG) ./backend/services/socket-service
docker push $(DOCKER_REPO)/socket-service:$(TAG)
frontend:
docker build -t $(DOCKER_REPO)/frontend:$(TAG) ./frontend
docker push $(DOCKER_REPO)/frontend:$(TAG)
# Clean target to remove dangling images
.PHONY: clean
clean:
docker image prune -f