mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-24 12:28:56 +00:00
Bake debugging requirements into the nightly image for ease of debugging
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -35,7 +35,17 @@ RUN apk add --no-cache \
|
||||
sudo \
|
||||
tzdata \
|
||||
unzip \
|
||||
wget
|
||||
wget
|
||||
|
||||
# For nightly images, we install gdb and screen for ease of debugging (this is
|
||||
# not included in the default image to keep it small), and also prepare the
|
||||
# system for a core dump. Furthermore, we already add the required signal
|
||||
# instructions to the gdb config file
|
||||
RUN if [ "${PIHOLE_DOCKER_TAG}" = "nightly" ]; then \
|
||||
apk add --no-cache gdb screen && \
|
||||
echo "ulimit -c unlimited" >> /etc/profile && \
|
||||
echo "handle SIGHUP nostop SIGPIPE nostop SIGTERM nostop SIG32 nostop SIG33 nostop SIG34 nostop SIG35 nostop SIG36 nostop SIG37 nostop SIG38 nostop SIG39 nostop SIG40 nostop SIG41 nostop" > /root/.gdbinit; \
|
||||
fi
|
||||
|
||||
ADD https://ftl.pi-hole.net/macvendor.db /macvendor.db
|
||||
COPY crontab.txt /crontab.txt
|
||||
|
||||
Reference in New Issue
Block a user