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