add coredns

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-01-02 13:04:34 -05:00
parent 198c76d938
commit f59c31059a
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
3 changed files with 36 additions and 2 deletions

33
coredns/Dockerfile Normal file
View File

@ -0,0 +1,33 @@
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN apk --no-cache add \
ca-certificates
ENV COREDNS_VERSION v1.0.2
RUN buildDeps=' \
go \
git \
gcc \
g++ \
libc-dev \
libgcc \
make \
' \
set -x \
&& apk --no-cache add $buildDeps \
&& git clone --depth 1 --branch ${COREDNS_VERSION} https://github.com/coredns/coredns /go/src/github.com/coredns/coredns \
&& cd /go/src/github.com/coredns/coredns \
&& make \
&& mv coredns /usr/bin/coredns \
&& apk del $buildDeps \
&& rm -rf /go \
&& echo "Build complete."
ENTRYPOINT [ "coredns" ]
CMD [ "--help" ]

View File

@ -61,6 +61,7 @@ atom/atom
camlistore/camlistore
certbot/certbot
hashicorp/consul
coredns/coredns
CouchPotato/CouchPotatoServer
curl/curl
google/guetzli

View File

@ -18,7 +18,6 @@ RUN buildDeps=' \
libc-dev \
libgcc \
make \
zip \
' \
set -x \
&& apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
@ -26,10 +25,11 @@ RUN buildDeps=' \
&& git clone --depth 1 --branch ${TERRAFORM_VERSION} https://github.com/hashicorp/terraform /go/src/github.com/hashicorp/terraform \
&& cd /go/src/github.com/hashicorp/terraform \
&& XC_ARCH="amd64" XC_OS="linux" make bin \
&& mv pkg/linux_amd64/terraform /usr/bin/ \
&& mv bin/terraform /usr/bin/terraform \
&& apk del $buildDeps \
&& rm -rf /go \
&& echo "Build complete."
ENTRYPOINT [ "terraform" ]
CMD [ "--help" ]