Files
goaway/Makefile
2024-12-30 12:59:54 +01:00

19 lines
404 B
Makefile

DNS_PORT = $(or $(GOAWAY_PORT),53)
WEBSITE_PORT = $(or $(GOAWAY_WEBSITE_PORT),8080)
.PHONY: build start example-queries test
build:
docker build -t goaway \
--build-arg DNS_PORT=${DNS_PORT} \
--build-arg WEBSITE_PORT=${WEBSITE_PORT} .
start: build
DNS_PORT=${DNS_PORT} WEBSITE_PORT=${WEBSITE_PORT} docker compose up goaway -d
example-queries:
@./dig-domains.sh
test:
go test ./test -count=1