Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-overhaul committed Dec 18, 2021
0 parents commit dd63b9e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .circleci/config.yml
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.*/
23 changes: 23 additions & 0 deletions Dockerfile
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"]
5 changes: 5 additions & 0 deletions readme.md
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.

0 comments on commit dd63b9e

Please sign in to comment.