-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 738 Bytes
/
Makefile
File metadata and controls
38 lines (31 loc) · 738 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
30
31
32
33
34
35
36
37
38
server :
go run ./cmd/server/main.go
proxy :
ifneq ($(and $(N),$(S)),)
go run ./cmd/proxy/main.go -N=$(N) -S=$(S)
else
ifneq ($(N),)
go run ./cmd/proxy/main.go -N=$(N)
else
ifneq ($(S),)
go run ./cmd/proxy/main.go -S=$(S)
else
go run ./cmd/proxy/main.go
endif
endif
endif
client :
go run ./cmd/client/main.go
# Lint and tests
lint :
golangci-lint run ./cmd/... ./internal/...
test :
CGO_ENABLED=1 go test -race -cover -count=1 -coverprofile=.coverprofile ./internal/...
# Docker
dockerfiles :
docker build -f ./docker/Dockerfile.proxy -t order-be-proxy .
docker build -f ./docker/Dockerfile.server -t order-be-server .
up :
docker-compose -f docker-compose.yaml up -d
down :
docker-compose -f docker-compose.yaml down