2022-04-28 14:25:40 +02:00
|
|
|
# SPDX-License-Identifier: MIT
|
2022-07-18 16:06:26 +02:00
|
|
|
#!BuildTag: opensuse/bci/openjdk:17
|
|
|
|
#!BuildTag: opensuse/bci/openjdk:17-%RELEASE%
|
2023-02-21 09:49:38 +01:00
|
|
|
#!BuildTag: opensuse/bci/openjdk:latest
|
2022-11-23 10:32:55 +01:00
|
|
|
|
2022-04-28 14:25:40 +02:00
|
|
|
FROM opensuse/tumbleweed:latest
|
|
|
|
|
2022-07-18 16:06:26 +02:00
|
|
|
MAINTAINER openSUSE (https://www.opensuse.org/)
|
2022-04-28 14:25:40 +02:00
|
|
|
|
|
|
|
# Define labels according to https://en.opensuse.org/Building_derived_containers
|
2022-07-18 16:06:26 +02:00
|
|
|
# labelprefix=org.opensuse.bci.openjdk
|
|
|
|
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI OpenJDK 17 Runtime Container Image"
|
2022-04-28 14:25:40 +02:00
|
|
|
LABEL org.opencontainers.image.description="Java 17 runtime based on the SLE Base Container Image."
|
|
|
|
LABEL org.opencontainers.image.version="17"
|
2022-07-18 16:06:26 +02:00
|
|
|
LABEL org.opencontainers.image.url="https://www.opensuse.org"
|
2022-04-28 14:25:40 +02:00
|
|
|
LABEL org.opencontainers.image.created="%BUILDTIME%"
|
2022-07-18 16:06:26 +02:00
|
|
|
LABEL org.opencontainers.image.vendor="openSUSE Project"
|
2023-03-03 08:52:04 +01:00
|
|
|
LABEL org.opencontainers.image.source="%SOURCEURL%"
|
2022-07-18 16:06:26 +02:00
|
|
|
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/openjdk:17-%RELEASE%"
|
2022-04-28 14:25:40 +02:00
|
|
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
2022-07-18 16:06:26 +02:00
|
|
|
|
|
|
|
LABEL com.suse.release-stage="released"
|
2022-04-28 14:25:40 +02:00
|
|
|
# endlabelprefix
|
|
|
|
|
2022-05-04 09:55:07 +02:00
|
|
|
RUN set -euo pipefail; zypper -n in --no-recommends java-17-openjdk; zypper -n clean; rm -rf /var/log/*
|
2022-12-07 18:37:01 +01:00
|
|
|
ENV JAVA_BINDIR="/usr/lib64/jvm/java-17-openjdk-17/bin"
|
|
|
|
ENV JAVA_HOME="/usr/lib64/jvm/java-17-openjdk-17"
|
|
|
|
ENV JAVA_ROOT="/usr/lib64/jvm/java-17-openjdk-17"
|
2022-04-28 14:25:40 +02:00
|
|
|
ENV JAVA_VERSION="17"
|
|
|
|
|
2022-12-07 18:37:01 +01:00
|
|
|
RUN set -euo pipefail; [ -d $JAVA_HOME ]; [ -d $JAVA_BINDIR ]; [ -f "$JAVA_BINDIR/java" ] && [ -x "$JAVA_BINDIR/java" ]
|