import helixdns

This commit is contained in:
Christine Dodrill 2015-06-10 10:01:54 -07:00
parent 7f76b2543b
commit 66b5c4fe6b
2 changed files with 19 additions and 0 deletions

13
net/helixdns/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM flitter/init
RUN apt-get update && apt-get install -y golang git mercurial --no-install-recommends && mkdir /go
ENV GOPATH /go
RUN go get github.com/mrwilson/helixdns
ADD helixdns /etc/service
EXPOSE 53/udp
ENTRYPOINT /sbin/my_init

6
net/helixdns/helixdns/run Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
export HOST={ETCD_PORT_4001_TCP_ADDR:-$HOST}
export ETCDADDR="http://$HOST:4001"
/go/bin/helixdns -etcd-address $ETCDADDR -port 53 -forward 8.8.8.8