]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
add Makefile.docker for easy build&push
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 16 Oct 2020 17:47:55 +0000 (19:47 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 16 Oct 2020 17:47:55 +0000 (19:47 +0200)
.dockerignore
Makefile.docker [new file with mode: 0644]

index c194a8a6f0c53441e0b565ae45ff03edfd70009a..0ce8025a1e9b08729290ce574743cde15d10eef3 100644 (file)
@@ -3,3 +3,4 @@ built_pkgs
 .git
 Dockerfile-*
 .dockerignore
+Makefile.docker
diff --git a/Makefile.docker b/Makefile.docker
new file mode 100644 (file)
index 0000000..195f88c
--- /dev/null
@@ -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