summaryrefslogtreecommitdiff
path: root/Makefile
blob: 14254543e08521d79fac872bca530914c66a8d82 (plain)
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
PROJECT_NAME := $(shell basename $(shell pwd))
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/\//_/g')
IMAGE_TAG := $(PROJECT_NAME):$(GIT_BRANCH)

.PHONY: clean run-image

.PHONY: clean
clean:
	@cargo clean

.PHONY: build-image
build-image:
	@docker build --no-cache --tag $(IMAGE_TAG) .

.PHONY: run-image
run-image: build-image
	@docker run --rm -p 50051:50051 -it $(IMAGE_TAG)

.PHONY: health-check
health-check:
	@grpcurl -plaintext localhost:50051 grpc.health.v1.Health/Check

.PHONY: list-services
list-services:
	@grpcurl -plaintext localhost:50051 list