-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit dd63b9e
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
ivy-circleci-orb: nxtlytics/[email protected] | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- ivy-circleci-orb/build_docker: | ||
name: ivy-coredns | ||
simple_docker_tag: true | ||
context: ivy | ||
filters: | ||
branches: | ||
ignore: | ||
- /.*/ | ||
tags: | ||
only: /^v.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM golang:1.17.5-stretch | ||
|
||
ARG coredns_version=1.8.6 | ||
ARG plugin_name=kubenodes | ||
ARG plugin_repo=github.com/chrisohaver/kubenodes | ||
|
||
RUN go mod download github.com/coredns/coredns@v${coredns_version} | ||
|
||
WORKDIR $GOPATH/pkg/mod/github.com/coredns/coredns@v${coredns_version} | ||
RUN go mod download | ||
|
||
RUN sed -i "/kubernetes/i ${plugin_name}:${plugin_repo}" plugin.cfg | ||
RUN go get ${plugin_repo} | ||
RUN make coredns | ||
RUN mv coredns /tmp/coredns | ||
|
||
FROM scratch | ||
|
||
COPY --from=0 /etc/ssl/certs /etc/ssl/certs | ||
COPY --from=0 /tmp/coredns /coredns | ||
|
||
EXPOSE 53 53/udp | ||
ENTRYPOINT ["/coredns"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ivy-coredns | ||
|
||
This is a customized packaging of CoreDNS to include some plugins we find useful. | ||
|
||
See the `Dockerfile` for more information about what has been changed. |