-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
FROM ubuntu:jammy | ||
MAINTAINER [email protected] | ||
|
||
ENV VERSION 1.19.1 | ||
ENV VERSION 1.21.0 | ||
|
||
WORKDIR /usr/local/src/ | ||
ADD assets/sha256checksum sha256checksum | ||
|
||
RUN apt update && apt install -y \ | ||
build-essential \ | ||
tar \ | ||
wget \ | ||
libssl-dev \ | ||
libevent-dev \ | ||
libevent-2.1-7 \ | ||
libexpat1-dev \ | ||
libexpat1 \ | ||
dnsutils \ | ||
&& wget --no-hsts http://www.unbound.net/downloads/unbound-${VERSION}.tar.gz -P /usr/local/src/ \ | ||
&& sha256sum -c sha256checksum \ | ||
&& tar -xvf unbound-${VERSION}.tar.gz \ | ||
&& rm unbound-${VERSION}.tar.gz \ | ||
&& cd unbound-${VERSION} \ | ||
&& ./configure --prefix=/usr/local --with-libevent \ | ||
&& make \ | ||
&& make install \ | ||
&& cd ../ \ | ||
&& rm -R unbound-${VERSION} \ | ||
&& apt purge -y \ | ||
build-essential \ | ||
gcc \ | ||
cpp \ | ||
libssl-dev \ | ||
libevent-dev \ | ||
libexpat1-dev \ | ||
&& apt autoremove --purge -y \ | ||
&& apt clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
build-essential \ | ||
tar \ | ||
wget \ | ||
libssl-dev \ | ||
libevent-dev \ | ||
libevent-2.1-7 \ | ||
libexpat1-dev \ | ||
libexpat1 \ | ||
dnsutils \ | ||
&& wget --no-hsts http://www.unbound.net/downloads/unbound-${VERSION}.tar.gz -P /usr/local/src/ \ | ||
&& sha256sum -c sha256checksum \ | ||
&& tar -xvf unbound-${VERSION}.tar.gz \ | ||
&& rm unbound-${VERSION}.tar.gz \ | ||
&& cd unbound-${VERSION} \ | ||
&& ./configure --prefix=/usr/local --with-libevent \ | ||
&& make \ | ||
&& make install \ | ||
&& cd ../ \ | ||
&& rm -R unbound-${VERSION} \ | ||
&& apt purge -y \ | ||
build-essential \ | ||
gcc \ | ||
cpp \ | ||
libssl-dev \ | ||
libevent-dev \ | ||
libexpat1-dev \ | ||
&& apt autoremove --purge -y \ | ||
&& apt clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN useradd --system unbound --home /home/unbound --create-home | ||
ENV PATH $PATH:/usr/local/lib | ||
|
@@ -47,7 +47,7 @@ RUN chown -R unbound:unbound /usr/local/etc/unbound/ | |
USER unbound | ||
RUN unbound-anchor -a /usr/local/etc/unbound/root.key ; true | ||
RUN unbound-control-setup \ | ||
&& wget ftp://FTP.INTERNIC.NET/domain/named.cache -O /usr/local/etc/unbound/root.hints | ||
&& wget ftp://FTP.INTERNIC.NET/domain/named.cache -O /usr/local/etc/unbound/root.hints | ||
|
||
USER root | ||
ADD start.sh /start.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
bc1d576f3dd846a0739adc41ffaa702404c6767d2b6082deb9f2f97cbb24a3a9 unbound-1.19.1.tar.gz | ||
e7dca7d6b0f81bdfa6fa64ebf1053b5a999a5ae9278a87ef182425067ea14521 unbound-1.21.0.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
unbound: | ||
image: mobilistics/unbound:1.19.1 | ||
image: mobilistics/unbound:1.21.0 | ||
ports: | ||
- "53:53/udp" | ||
- "53:53" | ||
- "53:53/udp" | ||
- "53:53" | ||
environment: | ||
- DO_IPV6=yes | ||
- DO_IPV4=yes | ||
- DO_UDP=yes | ||
- DO_TCP=yes | ||
- VERBOSITY=0 | ||
- NUM_THREADS=1 | ||
- SO_RCVBUFF=0 | ||
- SO_SNDBUF=0 | ||
- SO_REUSEPORT=no | ||
- EDNS_BUFFER_SIZE=4096 | ||
- MSG_CACHE_SIZE=4m | ||
- RRSET_CACHE_SIZE=4m | ||
- CACHE_MIN_TTL=0 | ||
- CACHE_MAX_TTL=86400 | ||
- CACHE_MAX_NEGATIVE_TTL=3600 | ||
- HIDE_IDENTITY=no | ||
- HIDE_VERSION=no | ||
- STATISTICS_INTERVAL=0 | ||
- STATISTICS_CUMULATIVE=no | ||
- EXTENDED_STATISTICS=no | ||
- DO_IPV6=yes | ||
- DO_IPV4=yes | ||
- DO_UDP=yes | ||
- DO_TCP=yes | ||
- VERBOSITY=0 | ||
- NUM_THREADS=1 | ||
- SO_RCVBUFF=0 | ||
- SO_SNDBUF=0 | ||
- SO_REUSEPORT=no | ||
- EDNS_BUFFER_SIZE=4096 | ||
- MSG_CACHE_SIZE=4m | ||
- RRSET_CACHE_SIZE=4m | ||
- CACHE_MIN_TTL=0 | ||
- CACHE_MAX_TTL=86400 | ||
- CACHE_MAX_NEGATIVE_TTL=3600 | ||
- HIDE_IDENTITY=no | ||
- HIDE_VERSION=no | ||
- STATISTICS_INTERVAL=0 | ||
- STATISTICS_CUMULATIVE=no | ||
- EXTENDED_STATISTICS=no | ||
restart: always |