Skip to content

Instantly share code, notes, and snippets.

@informationsea
Created July 20, 2020 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save informationsea/a7675756b52c6c179e13e57d16219801 to your computer and use it in GitHub Desktop.
Save informationsea/a7675756b52c6c179e13e57d16219801 to your computer and use it in GitHub Desktop.
Build OpenJDK 11 for Cent OS 7
FROM centos:7 AS jdk-download
RUN yum update -y
RUN curl -o jdk11u.tar.gz -L https://hg.openjdk.java.net/jdk-updates/jdk11u/archive/0b0d55cb09b2.tar.gz
FROM centos:7
RUN yum update -y
RUN yum install -y java-11-openjdk-devel autoconf automake bison flex gcc gcc-c++ gcc-gfortran kernel-devel make m4 patch tar bzip2 gzip xz file gmp-devel mpfr-devel wget rsync unzip zip libXtst-devel libXt-devel libXrender-devel cups-devel alsa-lib-devel freetype-devel which ccache mercurial bison flex gperf ksh pkgconfig libpng-devel libjpeg-devel libxml2-devel libxslt-devel systemd-devel glib2-devel gtk2-devel libXtst-devel pango-devel freetype-devel libXxf86vm-devel mesa-libGL-devel mesa-libGLU-devel mesa-libGLw-devel
COPY --from=jdk-download /jdk11u.tar.gz .
RUN tar xzf /jdk11u.tar.gz
WORKDIR /jdk11u-0b0d55cb09b2
RUN bash configure --without-version-pre --with-version-build=10
RUN make JOBS=4
RUN make install
RUN make docs-zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment