-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
34 lines (24 loc) · 1 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
# assertoor
VERSION := $(shell git rev-parse --short HEAD)
GOLDFLAGS += -X 'github.com/ethpandaops/assertoor/pkg/coordinator/buildinfo.BuildVersion="$(VERSION)"'
GOLDFLAGS += -X 'github.com/ethpandaops/assertoor/pkg/coordinator/buildinfo.BuildRelease="$(RELEASE)"'
.PHONY: all docs test clean
all: docs build
test:
go test ./...
build:
@echo version: $(VERSION)
env CGO_ENABLED=1 go build -v -o bin/ -ldflags="-s -w $(GOLDFLAGS)" .
docs:
go install github.com/swaggo/swag/cmd/[email protected] && swag init -g web/api/handler.go -d pkg/coordinator --parseDependency -o pkg/coordinator/web/api/docs
clean:
rm -f bin/*
devnet:
.hack/devnet/run.sh
devnet-run: devnet
go run main.go --config .hack/devnet/generated-assertoor-config.yaml
devnet-run-docker: devnet
docker build --file ./Dockerfile-local -t assertoor:devnet-run .
docker run --rm -v $(PWD):/workspace -p 8080:8080 --network kt-assertoor -it assertoor:devnet-run --config .hack/devnet/generated-assertoor-config.yaml
devnet-clean:
.hack/devnet/cleanup.sh