Debian Codegraph @

tests/docker-dns/Dockerfile

raw
1 FROM ubuntu:18.04
2
3 RUN rm /bin/sh && ln -s /bin/bash /bin/sh
4 RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
5
6 RUN apt-get -y update \
7 && apt-get -y install \
8 build-essential \
9 gcc \
10 apt-utils \
11 pkg-config \
12 software-properties-common \
13 apt-transport-https \
14 libssl-dev \
15 sudo \
16 bash \
17 curl \
18 tar \
19 git \
20 netcat \
21 bind9 \
22 dnsutils \
23 lsof \
24 && apt-get -y update \
25 && apt-get -y upgrade \
26 && apt-get -y autoremove \
27 && apt-get -y autoclean
28
29 ENV GOROOT /usr/local/go
30 ENV GOPATH /go
31 ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}
32 ENV GO_VERSION REPLACE_ME_GO_VERSION
33 ENV GO_DOWNLOAD_URL https://storage.googleapis.com/golang
34 RUN rm -rf ${GOROOT} \
35 && curl -s ${GO_DOWNLOAD_URL}/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local/ -xz \
36 && mkdir -p ${GOPATH}/src ${GOPATH}/bin \
37 && go version \
38 && go get -v -u github.com/mattn/goreman
39
40 RUN mkdir -p /var/bind /etc/bind
41 RUN chown root:bind /var/bind /etc/bind
42
43 ADD named.conf etcd.zone rdns.zone /etc/bind/
44 RUN chown root:bind /etc/bind/named.conf /etc/bind/etcd.zone /etc/bind/rdns.zone
45 ADD resolv.conf /etc/resolv.conf