Skip to content

Commit 8f2a31d

Browse files
walacdbaluta
authored andcommitted
Fix make docker-docs
Set the DEBIAN_FRONTEND=noninteractive environment variable: Since we build the docker image, the package system can't prompt the user for options. Install the apt-utils package: This remove the warning messages about package configuration delay. Install the imagemagick package: At some point in the documentation generation process, the scripts call the `convert` command, which is in the imagemagick package. Without it, `make docker-docs` fails. Install the packages suggest by the sphinx output: dvipng python3-venv fonts-noto-cjk latexmk librsvg2-bin texlive-xetex.
1 parent 0a78327 commit 8f2a31d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/labs/docker/docs/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM ubuntu:18.04
22

3+
ENV DEBIAN_FRONTEND noninteractive
34
RUN apt-get update
5+
RUN apt-get install -y apt-utils
46
RUN apt-get install -y software-properties-common
57
RUN apt-get install -y sudo
68
RUN apt-get install -y make
@@ -9,6 +11,13 @@ RUN apt-get install -y python
911
RUN apt-get install -y python-pip
1012
RUN apt-get install -y ditaa
1113
RUN apt-get install -y graphviz
14+
RUN apt-get install -y imagemagick
15+
RUN apt-get install -y dvipng
16+
RUN apt-get install -y python3-venv
17+
RUN apt-get install -y fonts-noto-cjk
18+
RUN apt-get install -y latexmk
19+
RUN apt-get install -y librsvg2-bin
20+
RUN apt-get install -y texlive-xetex
1221
RUN pip install Sphinx==1.6.7 sphinx_rtd_theme hieroglyph==1.0
1322
# append new packages here, to minimize docker rebuild time
1423
RUN rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)