mirror of
https://github.com/pommee/goaway.git
synced 2026-02-21 06:08:43 -06:00
19 lines
404 B
Makefile
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
|