-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 866 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
34
35
36
37
.PHONY: build
build:
@echo
@echo "⋮⋮ Building..."
go build -ldflags "-X main.version=`cat build_number``date -u +.%Y%m%d%H%M%S`"
test: build
@echo
@echo "⋮⋮ Testing..."
go test -count=1 ./... -coverprofile cover.out
review: test
@echo
@echo "⋮⋮ Reviewing tests..."
go tool cover -html cover.out
container: test
@echo
@echo "⋮⋮ Creating container..."
docker build -f ./build/package/Dockerfile -t aurora .
local: container
@echo
@echo "⋮⋮ Launching containers for local use..."
./scripts/config-remote-prometheus.sh
@sleep 5
docker compose -f ./deployments/docker-compose.yaml --project-name aurora up -d --force-recreate
@sleep 5
./scripts/config-revert-prometheus.sh
docker ps | grep aurora
clean-local:
docker compose -f ./deployments/docker-compose.yaml --project-name aurora down
all: build test container
@echo