-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (42 loc) · 1.45 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
49
50
51
52
53
54
55
.DEFAULT_GOAL := build
fmt:
go fmt ./...
.PHONY:fmt
lint: fmt
golint ./...
.PHONY:lint
vet: fmt
go vet ./...
.PHONY:vet
build: vet
@echo ">> building otelcol-dev binary"
mkdir -p build
go build -o build/otelcol-dev
.PHONY:build
test:
go test -cover ./...
.PHONY:test
verify: fmt test
.PHONY:verify
run: build
./build/otelcol-dev --config testdata/config.yaml
.PHONY:run
run-tls: build
./build/otelcol-dev --config testdata/config.tls.yaml
.PHONY:run-tls
run-mtls: build
./build/otelcol-dev --config testdata/config.mtls.yaml
.PHONY:run-mtls
generate-logs:
@echo ">> generating logs"
./scripts/generate-logs.sh 100 >> testdata/access.log
.PHONY:generate-logs
run-fluentbit:
docker run --name fluentbit --rm -p 127.0.0.1:24224:24224 fluent/fluent-bit /fluent-bit/bin/fluent-bit -i forward -o stdout -p format=json_lines -f 1
.PHONY:run-fluentbit
run-fluentd:
docker run --name fluentd --rm -h fluentd.net -p 127.0.0.1:24224:24224 -p 127.0.0.1:24224:24224/udp -v ./testdata/fluentd.conf:/fluentd/etc/fluentd.conf:ro -v ./testdata/certs:/fluentd/etc/certs:ro fluent/fluentd:v1.16-debian-amd64-1 -c /fluentd/etc/fluentd.conf -v
.PHONY:run-fluentd
run-fluentd-mtls:
docker run --name fluentd --rm -h fluentd.net -p 127.0.0.1:24224:24224 -p 127.0.0.1:24224:24224/udp -v ./testdata/fluentd.mtls.conf:/fluentd/etc/fluentd.conf:ro -v ./testdata/certs:/fluentd/etc/certs:ro fluent/fluentd:v1.16-debian-amd64-1 -c /fluentd/etc/fluentd.conf -v
.PHONY:run-fluentd-mtls