-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (36 loc) · 1.08 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
.DEFAULT_GOAL := default
build-alerter:
mkdir -p bin
CGO_ENABLED=0 go build -o bin/alerter ./cmd/alerter/...
.PHONY: build
build-ingestor:
mkdir -p bin
CGO_ENABLED=0 go build -o bin/ingestor ./cmd/ingestor/...
.PHONY: build
build-collector:
mkdir -p bin
CGO_ENABLED=1 go build -o bin/collector ./cmd/collector/...
.PHONY: build
build: build-alerter build-ingestor build-collector
.PHONY: build
image: image-ingestor image-alerter image-collector
.PHONY: image
image-ingestor:
docker build --no-cache -t ghcr.io/azure/adx-mon/ingestor:latest -f build/images/Dockerfile.ingestor .
image-alerter:
docker build --no-cache -t ghcr.io/azure/adx-mon/alerter:latest -f build/images/Dockerfile.alerter .
image-collector:
docker build --no-cache -t ghcr.io/azure/adx-mon/collector:latest -f build/images/Dockerfile.collector .
push:
docker push ghcr.io/azure/adx-mon/alerter:latest
docker push ghcr.io/azure/adx-mon/ingestor:latest
docker push ghcr.io/azure/adx-mon/collector:latest
clean:
rm bin/*
.PHONY: clean
test:
go test ./...
.PHONY: test
default:
@$(MAKE) test
@$(MAKE) build