Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 1.36 KB

File metadata and controls

39 lines (33 loc) · 1.36 KB

Build

CoreDNS plugins need to be compiled into the main CoreDNS binary, with some minor changes to include the plugin.

  • clone the main coredns repo
  • clone coredns_omada repo
  • both repos should share the same parent directory:
user@pc:/repos$ tree
.
├── coredns
└── coredns_omada
  • in coredns/plugin.cfg add the following line directly above the route53:route53 entry: omada:github.com/dougbw/coredns_omada
  • (this step is only required for local development of coredns_omada): in coredns/go.mod add the following line to the END of the file. The following example assumes you have the coredns_omada repo located at /repos/coredns_omada so this needs to match your system.
replace github.com/dougbw/coredns_omada => /repos/coredns_omada
  • run make from the coredns repo
  • grab the coredns binary and add your Corefile configuration file

Build instructions (docker image)

multi-platform:

See setting up docker for multi-platform builds

docker buildx build --platform linux/amd64,linux/arm64 -t coredns-omada .

linux/amd64 only:

docker buildx build --platform linux/amd64 -t coredns-omada .

linux/arm64 only:

docker buildx build --platform linux/arm64 -t coredns-omada .