Bake debugging requirements into the nightly image for ease of debugging

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-12-28 11:44:45 +01:00
parent bfcdafc69a
commit bcb4e28deb

View File

@@ -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