Debian Codegraph @

checker/bin-devel/Dockerfile-ubuntu-jdk11

raw
1 # Create a Docker image that is ready to run the main Checker Framework tests,
2 # using JDK 11.
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-11-jdk
16
17 RUN export DEBIAN_FRONTEND=noninteractive \
18 && apt-get -qqy update \
19 && apt-get -qqy install \
20 ant \
21 cpp \
22 git \
23 gradle \
24 jq \
25 libcurl3-gnutls \
26 make \
27 maven \
28 mercurial \
29 python3-pip \
30 python3-requests \
31 unzip \
32 wget
33
34 # Ubuntu 18.04 has Maven 3.6.0, but 3.6.1 apparently has better retry
35 # behavior to work around network problems.
36 RUN export DEBIAN_FRONTEND=noninteractive \
37 && VER=3.6.3 \
38 && mkdir -p $HOME/bin/install \
39 && cd $HOME/bin/install \
40 && wget http://apache.mirrors.pair.com/maven/maven-3/${VER}/binaries/apache-maven-${VER}-bin.tar.gz \
41 && tar xzf apache-maven-${VER}-bin.tar.gz \
42 && (cd /usr/local/bin && ln -sf $HOME/bin/install/apache-maven-${VER}/bin/* .) \
43 && hash -r
44
45 RUN export DEBIAN_FRONTEND=noninteractive \
46 && apt-get clean \
47 && rm -rf /var/lib/apt/lists/*