From 1fa711468567fee6fead75f8034cd89607928e19 Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 11 Sep 2021 21:40:43 -0500 Subject: [PATCH] docker: add busybox Add busybox to the base image to add some useful debugging utils inside the container (e.g. ps, ping, nslookup, traceroute, ip). --- config/docker/build-base-image.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/docker/build-base-image.sh b/config/docker/build-base-image.sh index abf7e9a78..ddc5a6758 100755 --- a/config/docker/build-base-image.sh +++ b/config/docker/build-base-image.sh @@ -21,6 +21,9 @@ DANBOORU_RUNTIME_DEPS=" zlib1g libfftw3-3 libwebp6 libwebpmux3 libwebpdemux2 liborc-0.4.0 liblcms2-2 libpng16-16 libjpeg-turbo8 libexpat1 libglib2.0 libgif7 libexif12 libvpx6 " +EXTRA_DEPS=" + busybox +" apt_install() { DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends "$@" @@ -81,6 +84,10 @@ install_ruby() { ruby --version } +install_busybox() { + busybox --install -s +} + cleanup() { apt-get purge -y $RUBY_BUILD_DEPS $VIPS_BUILD_DEPS $FFMPEG_BUILD_DEPS apt-get purge -y --allow-remove-essential \ @@ -101,10 +108,11 @@ cleanup() { } apt-get update -apt_install $COMMON_BUILD_DEPS $DANBOORU_RUNTIME_DEPS +apt_install $COMMON_BUILD_DEPS $DANBOORU_RUNTIME_DEPS $EXTRA_DEPS install_asdf install_exiftool install_ffmpeg install_vips install_ruby cleanup +install_busybox # after cleanup so we can install some utils removed by cleanup