import helixdns
This commit is contained in:
parent
7f76b2543b
commit
66b5c4fe6b
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue