-
Notifications
You must be signed in to change notification settings - Fork 45
/
Dockerfile
41 lines (35 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# NOTE: this Docker image is meant to be built using the root of the repository
# as context
# NOTE: the MetalK8s repository root is supposed to be mounted at
# `/usr/src/metalk8s` when running the container
FROM docker.io/ubuntu:18.04
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install --no-install-recommends -y \
sudo \
enchant \
curl \
git \
latexmk \
make \
plantuml \
python3.6 \
python3-buildbot-worker \
python3-pip \
python3-setuptools \
texlive-fonts-extra \
texlive-fonts-recommended \
texlive-latex-extra \
texlive-latex-recommended \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# NOTE: the tox package available is too old; we want tox >= 3.4, for the
# `commands_pre` syntax
RUN python3.6 -m pip install six==1.14.0 tox==3.14.3 && \
rm -rf ~/.cache/pip
WORKDIR /usr/src/metalk8s
COPY tox.ini .
COPY docs/requirements.txt docs/
RUN tox --workdir /tmp/tox --notest -e docs && \
rm -rf ~/.cache/pip