Skip to content

Commit

Permalink
Update Dockerfiles for SapMachine 23.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SapMachine committed Oct 16, 2024
1 parent 74f392c commit fb31495
Show file tree
Hide file tree
Showing 21 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion dockerfiles/23/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

### Overview

The dockerfiles in this subdirectory define images for consuming the stable release 23 (version: 23) of the SapMachine Java Virtual Machine (JVM).
The dockerfiles in this subdirectory define images for consuming the stable release 23 (version: 23.0.1) of the SapMachine Java Virtual Machine (JVM).
SapMachine is an OpenJDK based JVM that is built, quality tested and long-term supported by SAP.
It is the default JVM on the [SAP Business Technology Platform](https://www.sap.com/products/technology-platform.html) and it is also supported as a [Standard JRE](https://github.com/cloudfoundry/java-buildpack/blob/master/docs/jre-sap_machine_jre.md) in the [Cloud Foundry Java Build Pack](https://github.com/cloudfoundry/java-buildpack).

Expand Down
10 changes: 5 additions & 5 deletions dockerfiles/23/distroless/debian11/debug-nonroot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates
RUN dpkgArch="$(dpkg --print-architecture)"; \
case "${dpkgArch}" in \
'amd64') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jdk-23_linux-x64_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jdk-23.0.1_linux-x64_bin.tar.gz'; \
;; \
'arm64') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jdk-23_linux-aarch64_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jdk-23.0.1_linux-aarch64_bin.tar.gz'; \
;; \
'ppc64el') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jdk-23_linux-ppc64le_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jdk-23.0.1_linux-ppc64le_bin.tar.gz'; \
;; \
*) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \
esac; \
Expand All @@ -23,14 +23,14 @@ COPY --from=distroless / /distroless

RUN tar xzf sapmachine.tar.gz && \
rm -rf /distroless/etc/java-23-openjdk /distroless/usr/lib/jvm/java-23-openjdk-amd64 && \
mv sapmachine-jdk-23 /distroless/usr/lib/jvm/java-23-openjdk-amd64
mv sapmachine-jdk-23.0.1 /distroless/usr/lib/jvm/java-23-openjdk-amd64

FROM scratch
COPY --from=builder /distroless /

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
ENV LANG=C.UTF-8
ENV JAVA_VERSION=23
ENV JAVA_VERSION=23.0.1

ENTRYPOINT [ "/usr/bin/java", "-jar" ]
10 changes: 5 additions & 5 deletions dockerfiles/23/distroless/debian11/debug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates
RUN dpkgArch="$(dpkg --print-architecture)"; \
case "${dpkgArch}" in \
'amd64') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jdk-23_linux-x64_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jdk-23.0.1_linux-x64_bin.tar.gz'; \
;; \
'arm64') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jdk-23_linux-aarch64_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jdk-23.0.1_linux-aarch64_bin.tar.gz'; \
;; \
'ppc64el') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jdk-23_linux-ppc64le_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jdk-23.0.1_linux-ppc64le_bin.tar.gz'; \
;; \
*) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \
esac; \
Expand All @@ -23,14 +23,14 @@ COPY --from=distroless / /distroless

RUN tar xzf sapmachine.tar.gz && \
rm -rf /distroless/etc/java-23-openjdk /distroless/usr/lib/jvm/java-23-openjdk-amd64 && \
mv sapmachine-jdk-23 /distroless/usr/lib/jvm/java-23-openjdk-amd64
mv sapmachine-jdk-23.0.1 /distroless/usr/lib/jvm/java-23-openjdk-amd64

FROM scratch
COPY --from=builder /distroless /

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
ENV LANG=C.UTF-8
ENV JAVA_VERSION=23
ENV JAVA_VERSION=23.0.1

ENTRYPOINT [ "/usr/bin/java", "-jar" ]
10 changes: 5 additions & 5 deletions dockerfiles/23/distroless/debian11/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates
RUN dpkgArch="$(dpkg --print-architecture)"; \
case "${dpkgArch}" in \
'amd64') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jre-23_linux-x64_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jre-23.0.1_linux-x64_bin.tar.gz'; \
;; \
'arm64') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jre-23_linux-aarch64_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jre-23.0.1_linux-aarch64_bin.tar.gz'; \
;; \
'ppc64el') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jre-23_linux-ppc64le_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jre-23.0.1_linux-ppc64le_bin.tar.gz'; \
;; \
*) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \
esac; \
Expand All @@ -23,14 +23,14 @@ COPY --from=distroless / /distroless

RUN tar xzf sapmachine.tar.gz && \
rm -rf /distroless/etc/java-23-openjdk /distroless/usr/lib/jvm/java-23-openjdk-amd64 && \
mv sapmachine-jre-23 /distroless/usr/lib/jvm/java-23-openjdk-amd64
mv sapmachine-jre-23.0.1 /distroless/usr/lib/jvm/java-23-openjdk-amd64

FROM scratch
COPY --from=builder /distroless /


ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
ENV LANG=C.UTF-8
ENV JAVA_VERSION=23
ENV JAVA_VERSION=23.0.1

ENTRYPOINT [ "/usr/bin/java", "-jar" ]
10 changes: 5 additions & 5 deletions dockerfiles/23/distroless/debian11/nonroot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ RUN apt-get update && apt-get -y --no-install-recommends install ca-certificates
RUN dpkgArch="$(dpkg --print-architecture)"; \
case "${dpkgArch}" in \
'amd64') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jre-23_linux-x64_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jre-23.0.1_linux-x64_bin.tar.gz'; \
;; \
'arm64') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jre-23_linux-aarch64_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jre-23.0.1_linux-aarch64_bin.tar.gz'; \
;; \
'ppc64el') \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23/sapmachine-jre-23_linux-ppc64le_bin.tar.gz'; \
url='https://github.com/SAP/SapMachine/releases/download/sapmachine-23.0.1/sapmachine-jre-23.0.1_linux-ppc64le_bin.tar.gz'; \
;; \
*) echo >&2 "error: unsupported architecture '$dpkgArch'"; exit 1 ;; \
esac; \
Expand All @@ -23,14 +23,14 @@ COPY --from=distroless / /distroless

RUN tar xzf sapmachine.tar.gz && \
rm -rf /distroless/etc/java-23-openjdk /distroless/usr/lib/jvm/java-23-openjdk-amd64 && \
mv sapmachine-jre-23 /distroless/usr/lib/jvm/java-23-openjdk-amd64
mv sapmachine-jre-23.0.1 /distroless/usr/lib/jvm/java-23-openjdk-amd64

FROM scratch
COPY --from=builder /distroless /


ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
ENV LANG=C.UTF-8
ENV JAVA_VERSION=23
ENV JAVA_VERSION=23.0.1

ENTRYPOINT [ "/usr/bin/java", "-jar" ]
2 changes: 1 addition & 1 deletion dockerfiles/23/gardenlinux/1592/jdk-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc \
&& echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk-headless=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk-headless=23.0.1 \
&& apt-get remove -y --purge --autoremove wget \
&& rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/gardenlinux/1592/jdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc \
&& echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk=23.0.1 \
&& apt-get remove -y --purge --autoremove wget \
&& rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/gardenlinux/1592/jre-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc \
&& echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jre-headless=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jre-headless=23.0.1 \
&& apt-get remove -y --purge --autoremove wget \
&& rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/gardenlinux/1592/jre/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.asc \
&& echo "deb https://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jre=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jre=23.0.1 \
&& apt-get remove -y --purge --autoremove wget \
&& rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/20_04/jdk-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk-headless=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk-headless=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/20_04/jdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/20_04/jre-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jre-headless=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jre-headless=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/20_04/jre/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jre=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jre=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/22_04/jdk-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk-headless=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk-headless=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/22_04/jdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/22_04/jre-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jre-headless=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jre-headless=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/22_04/jre/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jre=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jre=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/24_04/jdk-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk-headless=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk-headless=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/24_04/jdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jdk=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/24_04/jre-headless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jre-headless=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jre-headless=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/23/ubuntu/24_04/jre/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/sapmachine.gpg \
&& echo "deb http://dist.sapmachine.io/debian/$(dpkg --print-architecture)/ ./" > /etc/apt/sources.list.d/sapmachine.list \
&& apt-get update \
&& apt-get -y --no-install-recommends install sapmachine-23-jre=23 \
&& apt-get -y --no-install-recommends install sapmachine-23-jre=23.0.1 \
&& apt-get remove -y --purge --autoremove ca-certificates gnupg \
&& rm -rf "$GNUPGHOME" /var/lib/apt/lists/*

Expand Down

0 comments on commit fb31495

Please sign in to comment.