Skip to content

Commit

Permalink
Merge branch 'master' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinnohd committed Apr 9, 2022
2 parents d7741de + 215d80f commit d531968
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 9 deletions.
9 changes: 5 additions & 4 deletions one-container/pihole-unbound/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM pihole/pihole:2022.02.1
FROM pihole/pihole:2022.04.2
RUN apt update && apt install -y unbound

COPY lighttpd-external.conf /etc/lighttpd/external.conf
COPY unbound-pihole.conf /etc/unbound/unbound.conf.d/pi-hole.conf
COPY 99-edns.conf /etc/dnsmasq.d/99-edns.conf
COPY start_unbound_and_s6_init.sh start_unbound_and_s6_init.sh
RUN mkdir /etc/services.d/unbound
COPY unbound-run /etc/services.d/unbound/run

ENTRYPOINT ./s6-init

RUN chmod +x start_unbound_and_s6_init.sh
ENTRYPOINT ./start_unbound_and_s6_init.sh
2 changes: 1 addition & 1 deletion one-container/pihole-unbound/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022.02.1
2022.04.2
3 changes: 0 additions & 3 deletions one-container/pihole-unbound/start_unbound_and_s6_init.sh

This file was deleted.

2 changes: 1 addition & 1 deletion one-container/pihole-unbound/unbound-pihole.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ server:
private-address: 172.16.0.0/12
private-address: 10.0.0.0/8
private-address: fd00::/8
private-address: fe80::/10
private-address: fe80::/10
25 changes: 25 additions & 0 deletions one-container/pihole-unbound/unbound-run
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/with-contenv bash

s6-echo "Starting unbound"

NAME="unbound"
DESC="DNS server"
DAEMON="/usr/sbin/unbound"
PIDFILE="/run/unbound.pid"

HELPER="/usr/lib/unbound/package-helper"

test -x $DAEMON || exit 0

# Override this variable by editing or creating /etc/default/unbound.
DAEMON_OPTS=""

if [ -f /etc/default/unbound ]; then
. /etc/default/unbound
fi

$HELPER chroot_setup
$HELPER root_trust_anchor_update 2>&1 | logger -p daemon.info -t unbound-anchor

$DAEMON -d $DAEMON_OPTS

0 comments on commit d531968

Please sign in to comment.