Use pre_build hook in docker hub to build the coredns binary (#799)

and skip the download process.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2017-07-27 14:34:56 -07:00
committed by GitHub
parent 10d354b784
commit 64353d8f3b
4 changed files with 8 additions and 20 deletions

7
hooks/pre_build Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
echo "=> Building the CoreDNS binary"
docker run \
-v $(pwd):/go/src/github.com/coredns/coredns \
-w /go/src/github.com/coredns/coredns \
golang:1.8.0 \
make