From: Peter van Dijk Date: Fri, 16 Oct 2020 17:47:55 +0000 (+0200) Subject: add Makefile.docker for easy build&push X-Git-Tag: auth-4.4.0-alpha2~2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae9d86e0f5173d987491d3e02fedc89e63e87110;p=thirdparty%2Fpdns.git add Makefile.docker for easy build&push --- diff --git a/.dockerignore b/.dockerignore index c194a8a6f0..0ce8025a1e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,3 +3,4 @@ built_pkgs .git Dockerfile-* .dockerignore +Makefile.docker diff --git a/Makefile.docker b/Makefile.docker new file mode 100644 index 0000000000..195f88c42e --- /dev/null +++ b/Makefile.docker @@ -0,0 +1,29 @@ +.PHONY: all build build-nocache dep + +VERSION=experimental +REVISION=1 + +all: build + +build: + docker build --build-arg VERSION=$(VERSION) -t powerdns/pdns-auth-master:$(VERSION)-$(REVISION) --rm -f Dockerfile-auth . + docker build --build-arg VERSION=$(VERSION) -t powerdns/pdns-recursor-master:$(VERSION)-$(REVISION) --rm -f Dockerfile-recursor . + docker build --build-arg VERSION=$(VERSION) -t powerdns/dnsdist-master:$(VERSION)-$(REVISION) --rm -f Dockerfile-dnsdist . + +build-nocache: + docker build --build-arg VERSION=$(VERSION) -t powerdns/pdns-auth-master:$(VERSION)-$(REVISION) --no-cache --rm -f Dockerfile-auth . + docker build --build-arg VERSION=$(VERSION) -t powerdns/pdns-recursor-master:$(VERSION)-$(REVISION) --no-cache --rm -f Dockerfile-recursor . + docker build --build-arg VERSION=$(VERSION) -t powerdns/dnsdist-master:$(VERSION)-$(REVISION) --no-cache --rm -f Dockerfile-dnsdist . + +push: build + docker push powerdns/pdns-auth-master:$(VERSION)-$(REVISION) + docker push powerdns/pdns-recursor-master:$(VERSION)-$(REVISION) + docker push powerdns/dnsdist-master:$(VERSION)-$(REVISION) + +push-latest: build + docker tag powerdns/pdns-auth-master:$(VERSION)-$(REVISION) powerdns/pdns-auth-master:latest + docker push powerdns/pdns-auth-master:latest + docker tag powerdns/pdns-recursor-master:$(VERSION)-$(REVISION) powerdns/pdns-recursor-master:latest + docker push powerdns/pdns-recursor-master:latest + docker tag powerdns/dnsdist-master:$(VERSION)-$(REVISION) powerdns/dnsdist-master:latest + docker push powerdns/dnsdist-master:latest