How to build Coredns image with fanmerge plugin?
At this moment exist two ways how to build Coredns image with fanmerge plugin.
Build via Coredns soruce code
You can build Coredns image via source code of Corends for this case you need to run:
$ cd $GOPATH
$ git clone https://github.com/coredns/coredns
$ cd coredns
$ git checkout v1.7.1
$ echo fanmerge:github.com/andrew-edgar/fanmerge >> plugin.cfg
$ make
$ cp /Users/aedgar/workspace/coligo/coredns/fanmerge/coredns/Makefile.release .
$ make -f Makefile.release release
$ make -f Makefile.release docker
Build via custom main.go
file
As alternative you can create your own main.go
file and build your own Coredns binary. Take a look at Official example. After that you will need also to create your own Dockerfile
.
You can also use files prepared for networkservicemesh. For this you need to run:
$ go build -o coredns/coredns coredns/main.go
$ docker build coredns/. -t "${ORG}/coredns:${TAG}"