If building `dev` or `nightly`, add some additional tools via apt to aid debugging
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
509ca4b39a
commit
d52eaaa622
|
@ -26,6 +26,13 @@ esac
|
||||||
echo "https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-${S6_ARCH}.tar.gz"
|
echo "https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-${S6_ARCH}.tar.gz"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Helps to have some additional tools in the dev image when debugging
|
||||||
|
if [[ "${PIHOLE_DOCKER_TAG}" = 'nightly' || "${PIHOLE_DOCKER_TAG}" = 'dev' ]]; then
|
||||||
|
apt-get update
|
||||||
|
apt-get install --no-install-recommends -y nano less
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
fi
|
||||||
|
|
||||||
ln -s `which echo` /usr/local/bin/whiptail
|
ln -s `which echo` /usr/local/bin/whiptail
|
||||||
curl -L -s "$(s6_download_url)" | tar xvzf - -C /
|
curl -L -s "$(s6_download_url)" | tar xvzf - -C /
|
||||||
mv /init /s6-init
|
mv /init /s6-init
|
||||||
|
|
Loading…
Reference in New Issue