Openj9 jre dockerfile2 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

how to build openj9 jre dockerfile

Hi All,This document shows how to build openj9 jre dockerfile. Eclipse OpenJ9 is a Java Virtual Machine developed by IBM and the Eclipse Foundation. The J9 VM is the basis of multiple IBM Java offerings, including WebSphere Micro Edition, as well as the basis of all IBM Java Development kits since version 5.

Learn how to install java8 in linux server, follow this

FROM frolvlad/alpine-glibc:latest
RUN apk –update add –no-cache ca-certificates curl binutils xz \
&& GLIBC_VER=”2.25-r0″ \
&& ALPINE_GLIBC_REPO=”https://github.com/sgerrand/alpine-pkg-glibc/releases/download” \
&& curl -Ls ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-${GLIBC_VER}.apk > /tmp/${GLIBC_VER}.apk \
&& apk add –allow-untrusted /tmp/${GLIBC_VER}.apk \
&& curl -Ls https://www.archlinux.org/packages/core/x86_64/gcc-libs/download > /tmp/gcc-libs.tar.xz \
&& mkdir /tmp/gcc \
&& tar -xf /tmp/gcc-libs.tar.xz -C /tmp/gcc \
&& mv /tmp/gcc/usr/lib/libgcc* /tmp/gcc/usr/lib/libstdc++* /usr/glibc-compat/lib \
&& strip /usr/glibc-compat/lib/libgcc_s.so.* /usr/glibc-compat/lib/libstdc++.so* \
&& JAVA_URL=”https://api.adoptopenjdk.net/openjdk8-openj9/releases/x64_linux/latest/binary” \
&& curl -Lso /tmp/openjdk.tar.gz ${JAVA_URL} \
&& mkdir -p /opt/java/openjdk \
&& cd /opt/java/openjdk \
&& tar -xf /tmp/openjdk.tar.gz \
&& rm -f /tmp/openjdk.tar.gz \
&& apk add ttf-dejavu fontconfig;rm -rf /var/cache/apk/* ; rm -rf /opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/samples \
&& rm -rf /opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/man; rm -rf /opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/bin/; rm -rf /opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/lib/; rm -rf /opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/demo/; rm -rf /opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/include; rm -rf /opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/src.zip; rm -rf /opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/ASSEMBLY_EXCEPTION ;rm -rf /opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/THIRD_PARTY_README; rm -rf /opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/openj9-notices.html; rm -rf /tmp/*

ENV JAVA_HOME=/opt/java/openjdk/jdk8u162-b12_openj9-0.8.0/jre
ENV PATH=$JAVA_HOME/bin:$PATH

You can find how to setup Glibc in Alpine Docker in this link

© 2018, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points

Related posts

Leave a Reply