Skip to content

Commit

Permalink
Merge pull request #5916 from ryanlovett/datahub-man
Browse files Browse the repository at this point in the history
Enable man.
  • Loading branch information
ryanlovett authored Aug 8, 2024
2 parents 05e5e5d + 430d865 commit 266961d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deployments/datahub/images/default/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ 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/^/#/' /etc/dpkg/dpkg.cfg.d/excludes

# Install all apt packages
COPY apt.txt /tmp/apt.txt
RUN apt-get -qq update --yes && \
Expand All @@ -30,6 +33,15 @@ RUN apt-get -qq update --yes && \
apt-get -qq clean && \
rm -rf /var/lib/apt/lists/*

# 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

# Create user owned R libs dir
# This lets users temporarily install packages
RUN install -d -o ${NB_USER} -g ${NB_USER} ${R_LIBS_USER}
Expand Down

0 comments on commit 266961d

Please sign in to comment.