Debian Codegraph @

checker/bin-devel/Dockerfile-ubuntu-jdk11-plus

raw
1 # Create a Docker image that is ready to run the full Checker Framework tests,
2 # including building the manual, Javadoc, and the JDK, using JDK 11.
3
4 FROM ubuntu
5 MAINTAINER Michael Ernst <[email protected]>
6
7 ## Keep this file in sync with ../../docs/manual/troubleshooting.tex
8
9 # According to
10 # https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/:
11 # * Put "apt-get update" and "apt-get install" and apt cleanup in the same RUN command.
12 # * Do not run "apt-get upgrade"; instead get upstream to update.
13
14 RUN export DEBIAN_FRONTEND=noninteractive \
15 && apt-get -qqy update \
16 && apt-get -qqy install \
17 openjdk-11-jdk
18
19 RUN export DEBIAN_FRONTEND=noninteractive \
20 && apt-get -qqy update \
21 && apt-get -qqy install \
22 ant \
23 cpp \
24 git \
25 gradle \
26 jq \
27 libcurl3-gnutls \
28 make \
29 maven \
30 mercurial \
31 python3-pip \
32 python3-requests \
33 unzip \
34 wget
35
36 # Ubuntu 18.04 has Maven 3.6.0, but 3.6.1 apparently has better retry
37 # behavior to work around network problems.
38 RUN export DEBIAN_FRONTEND=noninteractive \
39 && VER=3.6.3 \
40 && mkdir -p $HOME/bin/install \
41 && cd $HOME/bin/install \
42 && wget http://apache.mirrors.pair.com/maven/maven-3/${VER}/binaries/apache-maven-${VER}-bin.tar.gz \
43 && tar xzf apache-maven-${VER}-bin.tar.gz \
44 && (cd /usr/local/bin && ln -sf $HOME/bin/install/apache-maven-${VER}/bin/* .) \
45 && hash -r
46
47 RUN export DEBIAN_FRONTEND=noninteractive \
48 && apt-get -qqy update \
49 && apt-get -qqy install \
50 dia \
51 hevea \
52 imagemagick \
53 latexmk \
54 librsvg2-bin \
55 rsync \
56 texlive-font-utils \
57 texlive-fonts-recommended \
58 texlive-latex-base \
59 texlive-latex-extra \
60 texlive-latex-recommended
61
62 RUN pip3 install html5validator
63
64 RUN export DEBIAN_FRONTEND=noninteractive \
65 && apt-get clean \
66 && rm -rf /var/lib/apt/lists/*