-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·33 lines (22 loc) · 871 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
30
31
32
33
all: clean build test run ## run all
clean:
go mod tidy
run: ## run the API server
go run cmd/family-tree/main.go
build: ## run the API server
go build cmd/family-tree/main.go
test: ## run all test
go test -v -cover ./...
test-p: ## run all test with coverage
go test -p=1 -cover -covermode=count ./...
build-docker: ## build the API server as a docker image
docker build -f ./deployments/docker/service/Dockerfile -t server .
rebuild-env: stop-env destroy-env build-env start-env
start-env:
docker compose -f ./deployments/docker/localstack/docker-compose-local.yml up
stop-env:
docker compose -f ./deployments/docker/localstack/docker-compose-local.yml stop
destroy-env:
docker compose -f ./deployments/docker/localstack/docker-compose-local.yml rm -f
build-env:
docker compose -f ./deployments/docker/localstack/docker-compose-local.yml build