From b6074f4eb33ee1a7b2d5c30475383f41f6656d02 Mon Sep 17 00:00:00 2001 From: Ryan Lovett Date: Thu, 8 Aug 2024 10:08:34 -0700 Subject: [PATCH] Enable man. Enabling man could possibly bloat the datahub image. Undo this if it increases the size too much. --- deployments/datahub/images/default/Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deployments/datahub/images/default/Dockerfile b/deployments/datahub/images/default/Dockerfile index 29f185043..5c53faf7a 100644 --- a/deployments/datahub/images/default/Dockerfile +++ b/deployments/datahub/images/default/Dockerfile @@ -21,6 +21,17 @@ RUN apt-get -qq update --yes && \ RUN adduser --disabled-password --gecos "Default Jupyter user" ${NB_USER} +# Do not exclude manpages from being installed. +RUN sed -i -e '/usr.share.man/s/^/#/' exclude + +# From docker-ce-packaging +# Remove diverted man binary to prevent man-pages being replaced with "minimized" message. See docker/for-linux#639 +RUN if [ "$(dpkg-divert --truename /usr/bin/man)" = "/usr/bin/man.REAL" ]; then \ + rm -f /usr/bin/man; \ + dpkg-divert --quiet --remove --rename /usr/bin/man; \ + fi +RUN mandb -c + # Install all apt packages COPY apt.txt /tmp/apt.txt RUN apt-get -qq update --yes && \