summaryrefslogtreecommitdiffhomepage
path: root/test/runtimes/images/Dockerfile_java11
blob: 9b7c3d5a36ecb8e1ba0fd796e57b213f0552db46 (plain)
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
# Compile the proctor binary.
FROM golang:1.12 AS golang
ADD ["proctor/", "/go/src/proctor/"]
RUN ["go", "build", "-o", "/proctor", "/go/src/proctor"]

FROM ubuntu:bionic
RUN apt-get update && apt-get install -y \
  autoconf \
  build-essential \
  curl \
  make \
  openjdk-11-jdk \
  unzip \
  zip

# Download the JDK test library.
WORKDIR /root
RUN set -ex \
 && curl -fsSL --retry 10 -o /tmp/jdktests.tar.gz http://hg.openjdk.java.net/jdk/jdk11/archive/76072a077ee1.tar.gz/test \
 && tar -xzf /tmp/jdktests.tar.gz \
 && mv jdk11-76072a077ee1/test test \
 && rm -f /tmp/jdktests.tar.gz

# Install jtreg and add to PATH.
RUN curl -o jtreg.tar.gz https://ci.adoptopenjdk.net/view/Dependencies/job/jtreg/lastSuccessfulBuild/artifact/jtreg-4.2.0-tip.tar.gz
RUN tar -xzf jtreg.tar.gz
ENV PATH="/root/jtreg/bin:$PATH"

COPY --from=golang /proctor /proctor
ENTRYPOINT ["/proctor", "--runtime=java"]