-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
29 lines (23 loc) · 795 Bytes
/
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
DOCKER_CLI=docker compose -f docker-compose.cli.yml
NETWORK_NAME=infra_net
create-network:
if ! docker network inspect $(NETWORK_NAME) >/dev/null 2>&1; then \
echo "The network $(NETWORK_NAME) not exist. Creating..."; \
docker network create $(NETWORK_NAME); \
echo "The network $(NETWORK_NAME) was created successfully."; \
else \
echo "The network $(NETWORK_NAME) already exist."; \
fi
generate-pb:
$(DOCKER_CLI) build &&\
$(DOCKER_CLI) run --rm bash generate.sh
go-mod-tidy:
$(DOCKER_CLI) run --rm go mod tidy
container-grpc-gateway:
docker compose up grpc_gateway
container-grpc-server:
mvn clean install &&\
docker compose up --build grpc-server
container-start:
mvn clean install &&\
docker compose up --build grpc-server grpc-client