From f1c30ef00eed6b2f39f2f05e54820a9a9b7e875b Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 2 Mar 2015 11:26:21 +0800 Subject: [PATCH] add dnscrypt --- dnscrypt/Dockerfile | 27 +++++++++++++++++++++++++++ dnscrypt/dnscrypt.conf | 2 ++ dnscrypt/dnsmasq.conf | 2 ++ 3 files changed, 31 insertions(+) create mode 100644 dnscrypt/Dockerfile create mode 100644 dnscrypt/dnscrypt.conf create mode 100644 dnscrypt/dnsmasq.conf diff --git a/dnscrypt/Dockerfile b/dnscrypt/Dockerfile new file mode 100644 index 0000000..ec8b7ff --- /dev/null +++ b/dnscrypt/Dockerfile @@ -0,0 +1,27 @@ +FROM ubuntu:14.04 +MAINTAINER kev + +RUN apt-get update +RUN apt-get install -y build-essential supervisor dnsmasq + +ADD ./*.conf /etc/supervisor/conf.d/ +ADD https://download.libsodium.org/libsodium/releases/libsodium-1.0.2.tar.gz /tmp/ +ADD http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.4.3.tar.gz /tmp/ + +WORKDIR /tmp + +RUN tar xzf libsodium-1.0.2.tar.gz && \ + cd libsodium-1.0.2 && \ + ./configure && \ + make && \ + make install + +RUN echo /usr/local/lib > /etc/ld.so.conf.d/local.conf && ldconfig + +RUN tar xzf dnscrypt-proxy-1.4.3.tar.gz && \ + cd dnscrypt-proxy && \ + ./configure && \ + make && \ + make install + +CMD supervisor -n -c /etc/supervisor/supervisord.conf diff --git a/dnscrypt/dnscrypt.conf b/dnscrypt/dnscrypt.conf new file mode 100644 index 0000000..96c615c --- /dev/null +++ b/dnscrypt/dnscrypt.conf @@ -0,0 +1,2 @@ +[program:dnscrypt] +command = dnscrypt-proxy -a 127.0.0.1:2053 -R opendns diff --git a/dnscrypt/dnsmasq.conf b/dnscrypt/dnsmasq.conf new file mode 100644 index 0000000..e47a78f --- /dev/null +++ b/dnscrypt/dnsmasq.conf @@ -0,0 +1,2 @@ +[program:dnsmasq] +command = dnsmasq -d