-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (27 loc) · 724 Bytes
/
Makefile
File metadata and controls
40 lines (27 loc) · 724 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
39
40
all: build
build:
go build .
tidy:
go mod tidy
clean:
rm sources-superkey-worker
container:
docker build . -t sources-superkey-worker -f Dockerfile
run: build
./sources-superkey-worker
inlinerun:
go run .
fancyrun: build
./sources-superkey-worker | grep '^{' | jq -r .
runcontainer: container
docker run -ti --rm --net host -e KAFKA_BROKERS=localhost:9092 sources-superkey-worker
remotedebug:
dlv debug --headless --listen=:2345 --api-version=2 --accept-multiclient
debug:
dlv debug
lint:
go vet ./...
golangci-lint run -E gofmt,gci,bodyclose,forcetypeassert,misspell
gci:
golangci-lint run -E gci --fix
.PHONY: build container run fancyrun runcontainer clean debug tidy debug remotedebug lint gci