Created
January 8, 2021 20:42
-
-
Save jeshan/7281feda1b11eb6caaf0255df57b0cca to your computer and use it in GitHub Desktop.
OpenJDK build instructions for Linux/Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This image builds OpenJDK 15 with Clang. Feel free to change the parameters as needed. | |
# Build instructions: https://openjdk.java.net/groups/build/doc/building.html | |
# Public domain code. | |
FROM ubuntu:20.04 | |
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y \ | |
git autoconf file make zip curl clang libcups2-dev libxrandr-dev libxtst-dev libxt-dev libfontconfig1-dev libasound2-dev | |
WORKDIR /app | |
RUN git clone https://git.openjdk.java.net/jdk/ --branch jdk-15-ga --single-branch | |
RUN curl -O https://download.java.net/java/GA/jdk15.0.1/51f4f36ad4ef43e39d0dfdbaf6549e32/9/GPL/openjdk-15.0.1_linux-x64_bin.tar.gz && \ | |
tar xvf openjdk-15.0.1_linux-x64_bin.tar.gz && rm openjdk-15.0.1_linux-x64_bin.tar.gz | |
ENV JAVA_HOME=/app/jdk-15.0.1 | |
RUN curl -O https://ci.adoptopenjdk.net/view/Dependencies/job/jtreg/lastSuccessfulBuild/artifact/jtreg-5.1-b01.tar.gz && \ | |
tar xvf jtreg-5.1-b01.tar.gz | |
WORKDIR jdk | |
RUN bash configure --with-toolchain-type=clang --disable-warnings-as-errors --with-jtreg=/app/jtreg | |
RUN make images | |
RUN ./build/*/images/jdk/bin/java -version | |
# optional (and slow) | |
RUN make run-test-tier1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment