full-java17-openj9
sha256:7e7d2fe0d3f80c7efac4c3508f34c2cd05ec27c599986fd2790d28d3053017e4
OS/ARCH
Compressed size
428.48 MB
Last pushed
9 days by doijanky
Type
Image
Vulnerabilities
Not scanned
Manifest digest
sha256:0954117bfd03f7587b1ba2c4644a2bbdd219eba9ccd41b159306ee6c335d4bb4
0
ARG RELEASE
0 B
1
ARG LAUNCHPAD_BUILD_ARCH
0 B
2
LABEL org.opencontainers.image.ref.name=ubuntu
0 B
3
LABEL org.opencontainers.image.version=22.04
0 B
4
ADD file:1b6c8c9518be42fa2afe5e241ca31677fce58d27cdfa88baa91a65a259be3637 in /
29.54 MB
5
CMD ["/bin/bash"]
0 B
6
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
0 B
7
RUN /bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl ca-certificates fontconfig locales && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen en_US.UTF-8 && rm -rf /var/lib/apt/lists/* # buildkit
12.17 MB
8
ENV JAVA_VERSION=jdk-17.0.13+11_openj9-0.48.0
0 B
9
RUN /bin/sh -c set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in aarch64|arm64) ESUM='e737c9d2f4fc5a4fd5e58ec044ef9f118ffe2fbd5a7a4953fa02cd9d56b6cb47'; BINARY_URL='https://github.com/ibmruntimes/semeru17-binaries/releases/download/jdk-17.0.13%2B11_openj9-0.48.0/ibm-semeru-open-jre_aarch64_linux_17.0.13_11_openj9-0.48.0.tar.gz'; ;; ppc64el|ppc64le) ESUM='d3e0c4e9f612093833a7d651835d6e65c2ff0f1ed8dd7afd2f0359945ebf7d34'; BINARY_URL='https://github.com/ibmruntimes/semeru17-binaries/releases/download/jdk-17.0.13%2B11_openj9-0.48.0/ibm-semeru-open-jre_ppc64le_linux_17.0.13_11_openj9-0.48.0.tar.gz'; ;; amd64|x86_64) ESUM='0cbc8917a20d7c495d765f6986b5fe0b08133fcf48ef6b43d92b61f5c4f325d7'; BINARY_URL='https://github.com/ibmruntimes/semeru17-binaries/releases/download/jdk-17.0.13%2B11_openj9-0.48.0/ibm-semeru-open-jre_x64_linux_17.0.13_11_openj9-0.48.0.tar.gz'; ;; s390x) ESUM='a2f3588d940696ef58d3a588e6bbce940c1aa64938fabbf9a14a551a5e15385b'; BINARY_URL='https://github.com/ibmruntimes/semeru17-binaries/releases/download/jdk-17.0.13%2B11_openj9-0.48.0/ibm-semeru-open-jre_s390x_linux_17.0.13_11_openj9-0.48.0.tar.gz'; ;; *) echo "Unsupported arch: ${ARCH}"; exit 1; ;; esac; curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; mkdir -p /opt/java/openjdk; cd /opt/java/openjdk; tar -xf /tmp/openjdk.tar.gz --strip-components=1; rm -rf /tmp/openjdk.tar.gz; # buildkit
51.53 MB
10
ENV JAVA_HOME=/opt/java/openjdk PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0 B
11
ENV JAVA_TOOL_OPTIONS=-XX:+IgnoreUnrecognizedVMOptions -XX:+PortableSharedCache -XX:+IdleTuningGcOnIdle -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,readonly,nonFatal
0 B
12
RUN /bin/sh -c set -eux; unset OPENJ9_JAVA_OPTIONS; SCC_SIZE="50m"; DOWNLOAD_PATH_TOMCAT=/tmp/tomcat; INSTALL_PATH_TOMCAT=/opt/tomcat-home; TOMCAT_CHECKSUM="07d87286e8ee84bb291069c596cf36233e56a14e3ecb6d65eea0fa7c7042ce5e75f5db31f210b96b6b25b80b34e626dd26c5a6ed5c052384a8587d62658b5e16"; TOMCAT_DWNLD_URL="https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.98/bin/apache-tomcat-9.0.98.tar.gz"; mkdir -p "${DOWNLOAD_PATH_TOMCAT}" "${INSTALL_PATH_TOMCAT}"; curl -LfsSo "${DOWNLOAD_PATH_TOMCAT}"/tomcat.tar.gz "${TOMCAT_DWNLD_URL}"; echo "${TOMCAT_CHECKSUM} *${DOWNLOAD_PATH_TOMCAT}/tomcat.tar.gz" | sha512sum -c -; tar -xf "${DOWNLOAD_PATH_TOMCAT}"/tomcat.tar.gz -C "${INSTALL_PATH_TOMCAT}" --strip-components=1; rm -rf "${DOWNLOAD_PATH_TOMCAT}"; java -Xshareclasses:name=dry_run_scc,cacheDir=/opt/java/.scc,bootClassesOnly,nonFatal,createLayer -Xscmx$SCC_SIZE -version; export OPENJ9_JAVA_OPTIONS="-XX:+IProfileDuringStartupPhase -Xshareclasses:name=dry_run_scc,cacheDir=/opt/java/.scc,bootClassesOnly,nonFatal"; "${INSTALL_PATH_TOMCAT}"/bin/startup.sh; sleep 5; "${INSTALL_PATH_TOMCAT}"/bin/shutdown.sh -force; sleep 15; FULL=$( (java -Xshareclasses:name=dry_run_scc,cacheDir=/opt/java/.scc,printallStats 2>&1 || true) | awk '/^Cache is [0-9.]*% .*full/ {print substr($3, 1, length($3)-1)}'); DST_CACHE=$(java -Xshareclasses:name=dry_run_scc,cacheDir=/opt/java/.scc,destroy 2>&1 || true); SCC_SIZE=$(echo $SCC_SIZE | sed 's/.$//'); SCC_SIZE=$(awk "BEGIN {print int($SCC_SIZE * $FULL / 100.0)}"); [ "${SCC_SIZE}" -eq 0 ] && SCC_SIZE=1; SCC_SIZE="${SCC_SIZE}m"; java -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,bootClassesOnly,nonFatal,createLayer -Xscmx$SCC_SIZE -version; unset OPENJ9_JAVA_OPTIONS; export OPENJ9_JAVA_OPTIONS="-XX:+IProfileDuringStartupPhase -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,bootClassesOnly,nonFatal"; "${INSTALL_PATH_TOMCAT}"/bin/startup.sh; sleep 5; "${INSTALL_PATH_TOMCAT}"/bin/shutdown.sh -force; sleep 5; FULL=$( (java -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,printallStats 2>&1 || true) | awk '/^Cache is [0-9.]*% .*full/ {print substr($3, 1, length($3)-1)}'); echo "SCC layer is $FULL% full."; rm -rf "${INSTALL_PATH_TOMCAT}"; if [ -d "/opt/java/.scc" ]; then chmod -R 0777 /opt/java/.scc; fi; echo "SCC generation phase completed"; # buildkit
5.01 MB
13
USER root
0 B
14
ARG LIBERTY_VERSION=25.0.0.1
0 B
15
ARG LIBERTY_SHA=f889eab11f1ef7ece29dac622d2842208aa602c3
0 B
16
ARG LIBERTY_DOWNLOAD_URL=https://repo1.maven.org/maven2/io/openliberty/openliberty-runtime/25.0.0.1/openliberty-runtime-25.0.0.1.zip
0 B
17
ARG LIBERTY_BUILD_LABEL=cl250120250113-0302
0 B
18
ARG OPENJ9_SCC=true
0 B
19
ARG VERBOSE=false
0 B
20
LABEL org.opencontainers.image.authors=Leo Christy Jesuraj, Melissa Lee, Thomas Watson, Michal Broz, Wendy Raschke org.opencontainers.image.vendor=Open Liberty org.opencontainers.image.url=https://openliberty.io/ org.opencontainers.image.source=https://github.com/OpenLiberty/ci.docker org.opencontainers.image.revision=cl250120250113-0302 org.opencontainers.image.description=This image contains the Open Liberty runtime with IBM Semeru Runtime Open Edition OpenJDK with OpenJ9 and Ubuntu as the base OS. For more information on this image please see https://github.com/OpenLiberty/ci.docker#building-an-application-image org.opencontainers.image.title=Open Liberty org.opencontainers.image.version=25.0.0.1 liberty.version=25.0.0.1 io.openliberty.version=25.0.0.1
0 B
21
COPY NOTICES /opt/ol/NOTICES # buildkit
1.05 KB
22
COPY helpers /opt/ol/helpers # buildkit
10.11 KB
23
COPY fixes/ /opt/ol/fixes/ # buildkit
240 B
24
RUN |6 LIBERTY_VERSION=25.0.0.1 LIBERTY_SHA=f889eab11f1ef7ece29dac622d2842208aa602c3 LIBERTY_DOWNLOAD_URL=https://repo1.maven.org/maven2/io/openliberty/openliberty-runtime/25.0.0.1/openliberty-runtime-25.0.0.1.zip LIBERTY_BUILD_LABEL=cl250120250113-0302 OPENJ9_SCC=true VERBOSE=false /bin/sh -c set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in aarch64|arm64) DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_aarch64'; DUMB_INIT_SHA256=b7d648f97154a99c539b63c55979cd29f005f88430fb383007fe3458340b795e; ;; amd64|x86_64) DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64'; DUMB_INIT_SHA256=e874b55f3279ca41415d290c512a7ba9d08f98041b28ae7c2acb19a545f1c4df; ;; ppc64el|ppc64le) DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_ppc64le'; DUMB_INIT_SHA256=3d15e80e29f0f4fa1fc686b00613a2220bc37e83a35283d4b4cca1fbd0a5609f; ;; s390x) DUMB_INIT_URL='https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_s390x'; DUMB_INIT_SHA256=47e4601b152fc6dcb1891e66c30ecc62a2939fd7ffd1515a7c30f281cfec53b7; ;; *) echo "Unsupported arch: ${ARCH}"; exit 1; ;; esac; curl -LfsSo /usr/bin/dumb-init ${DUMB_INIT_URL}; echo "${DUMB_INIT_SHA256} */usr/bin/dumb-init" | sha256sum -c -; chmod +x /usr/bin/dumb-init; # buildkit
31.75 KB
25
RUN |6 LIBERTY_VERSION=25.0.0.1 LIBERTY_SHA=f889eab11f1ef7ece29dac622d2842208aa602c3 LIBERTY_DOWNLOAD_URL=https://repo1.maven.org/maven2/io/openliberty/openliberty-runtime/25.0.0.1/openliberty-runtime-25.0.0.1.zip LIBERTY_BUILD_LABEL=cl250120250113-0302 OPENJ9_SCC=true VERBOSE=false /bin/sh -c apt-get update && apt-get install -y --no-install-recommends unzip openssl wget && wget -q $LIBERTY_DOWNLOAD_URL -U UA-Open-Liberty-Docker -O /tmp/wlp.zip && echo "$LIBERTY_SHA /tmp/wlp.zip" > /tmp/wlp.zip.sha1 && sha1sum -c /tmp/wlp.zip.sha1 && unzip -q /tmp/wlp.zip -d /opt/ol && rm /tmp/wlp.zip && rm /tmp/wlp.zip.sha1 && mkdir -p /licenses && cp /opt/ol/wlp/LICENSE /licenses/ && apt-get remove -y unzip && apt-get remove -y wget && rm -rf /var/lib/apt/lists/* && useradd -u 1001 -r -g 0 -s /usr/sbin/nologin default && chown -R 1001:0 /opt/ol/wlp && chmod -R g+rw /opt/ol/wlp # buildkit
336.89 MB
26
ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/ol/wlp/bin:/opt/ol/helpers/build LOG_DIR=/logs WLP_OUTPUT_DIR=/opt/ol/wlp/output WLP_SKIP_MAXPERMSIZE=true OPENJ9_SCC=true
0 B
27
RUN |6 LIBERTY_VERSION=25.0.0.1 LIBERTY_SHA=f889eab11f1ef7ece29dac622d2842208aa602c3 LIBERTY_DOWNLOAD_URL=https://repo1.maven.org/maven2/io/openliberty/openliberty-runtime/25.0.0.1/openliberty-runtime-25.0.0.1.zip LIBERTY_BUILD_LABEL=cl250120250113-0302 OPENJ9_SCC=true VERBOSE=false /bin/sh -c /opt/ol/wlp/bin/server create --template=javaee8 && rm -rf $WLP_OUTPUT_DIR/.classCache /output/workarea && rm -rf /opt/ol/wlp/usr/servers/defaultServer/server.env # buildkit
1.06 KB
28
RUN |6 LIBERTY_VERSION=25.0.0.1 LIBERTY_SHA=f889eab11f1ef7ece29dac622d2842208aa602c3 LIBERTY_DOWNLOAD_URL=https://repo1.maven.org/maven2/io/openliberty/openliberty-runtime/25.0.0.1/openliberty-runtime-25.0.0.1.zip LIBERTY_BUILD_LABEL=cl250120250113-0302 OPENJ9_SCC=true VERBOSE=false /bin/sh -c mkdir /logs && mkdir -p /opt/ol/wlp/usr/shared/resources/lib.index.cache && ln -s /opt/ol/wlp/usr/shared/resources/lib.index.cache /lib.index.cache && mkdir -p $WLP_OUTPUT_DIR/defaultServer && ln -s $WLP_OUTPUT_DIR/defaultServer /output && ln -s /opt/ol/wlp/usr/servers/defaultServer /config && mkdir -p /config/configDropins/defaults && mkdir -p /config/configDropins/overrides && mkdir -p /config/dropins && mkdir -p /config/apps && ln -s /opt/ol/wlp /liberty && ln -s /opt/ol/fixes /fixes && chown -R 1001:0 /config && chmod -R g+rw /config && chown -R 1001:0 /logs && chmod -R g+rw /logs && chown -R 1001:0 /opt/ol/wlp/usr && chmod -R g+rw /opt/ol/wlp/usr && chown -R 1001:0 /opt/ol/wlp/output && chmod -R g+rw /opt/ol/wlp/output && chown -R 1001:0 /opt/ol/helpers && chmod -R ug+rwx /opt/ol/helpers && chown -R 1001:0 /opt/ol/fixes && chmod -R g+rwx /opt/ol/fixes && mkdir /etc/wlp && chown -R 1001:0 /etc/wlp && chmod -R g+rw /etc/wlp && echo "<server description=\"Default Server\"><httpEndpoint id=\"defaultHttpEndpoint\" host=\"*\" /></server>" > /config/configDropins/defaults/open-default-port.xml # buildkit
11.47 KB
29
RUN |6 LIBERTY_VERSION=25.0.0.1 LIBERTY_SHA=f889eab11f1ef7ece29dac622d2842208aa602c3 LIBERTY_DOWNLOAD_URL=https://repo1.maven.org/maven2/io/openliberty/openliberty-runtime/25.0.0.1/openliberty-runtime-25.0.0.1.zip LIBERTY_BUILD_LABEL=cl250120250113-0302 OPENJ9_SCC=true VERBOSE=false /bin/sh -c if [ "$OPENJ9_SCC" = "true" ]; then populate_scc.sh; fi && rm -rf /output/messaging /output/resources/security /logs/* $WLP_OUTPUT_DIR/.classCache && chown -R 1001:0 /opt/ol/wlp/output && chmod -R g+rwx /opt/ol/wlp/output # buildkit
14.1 MB
30
ENV RANDFILE=/tmp/.rnd OPENJ9_JAVA_OPTIONS=-XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningGcOnIdle -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,readonly,nonFatal -Dosgi.checkConfiguration=false
0 B
31
USER 1001
0 B
32
EXPOSE map[9080/tcp:{} 9443/tcp:{}]
0 B
33
ENTRYPOINT ["/opt/ol/helpers/runtime/docker-server.sh"]
0 B
34
CMD ["/opt/ol/wlp/bin/server" "run" "defaultServer"]
0 B