|
| 1 | +# SPDX-License-Identifier: MIT |
| 2 | + |
| 3 | +# Copyright (c) 2025 SUSE LLC |
| 4 | + |
| 5 | +# All modifications and additions to the file contributed by third parties |
| 6 | +# remain the property of their copyright owners, unless otherwise agreed |
| 7 | +# upon. |
| 8 | + |
| 9 | +# The content of THIS FILE IS AUTOGENERATED and should not be manually modified. |
| 10 | +# It is maintained by the BCI team and generated by |
| 11 | +# https://github.com/SUSE/BCI-dockerfile-generator |
| 12 | + |
| 13 | +# Please submit bugfixes or comments via https://bugs.opensuse.org/ |
| 14 | +# You can contact the BCI team via https://github.com/SUSE/bci/discussions |
| 15 | + |
| 16 | +#!UseOBSRepositories |
| 17 | +#!ExclusiveArch: aarch64 x86_64 ppc64le s390x |
| 18 | +#!BuildTag: bci/openjdk-devel:%%java_version%%-%RELEASE% |
| 19 | +#!BuildTag: bci/openjdk-devel:%%java_version%% |
| 20 | +#!BuildTag: bci/openjdk-devel:21 |
| 21 | +#!BuildName: bci-openjdk-devel-21 |
| 22 | +#!BuildVersion: 16.0.21 |
| 23 | +FROM bci/openjdk:21 |
| 24 | + |
| 25 | +RUN set -euo pipefail; \ |
| 26 | + zypper -n install --no-recommends java-21-openjdk-devel maven |
| 27 | +RUN set -euo pipefail; zypper -n clean -a; \ |
| 28 | + rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} |
| 29 | + |
| 30 | +# Define labels according to https://en.opensuse.org/Building_derived_containers |
| 31 | +# labelprefix=com.suse.bci.openjdk.devel |
| 32 | +LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions" |
| 33 | +LABEL org.opencontainers.image.title="SLE BCI OpenJDK 21 development" |
| 34 | +LABEL org.opencontainers.image.description="OpenJDK 21 development container based on the SLE Base Container Image." |
| 35 | +LABEL org.opencontainers.image.version="%%java_version%%" |
| 36 | +LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/" |
| 37 | +LABEL org.opencontainers.image.created="%BUILDTIME%" |
| 38 | +LABEL org.opencontainers.image.vendor="SUSE LLC" |
| 39 | +LABEL org.opencontainers.image.source="%SOURCEURL%" |
| 40 | +LABEL org.opencontainers.image.ref.name="%%java_version%%-%RELEASE%" |
| 41 | +LABEL org.opensuse.reference="registry.suse.com/bci/openjdk-devel:%%java_version%%-%RELEASE%" |
| 42 | +LABEL org.openbuildservice.disturl="%DISTURL%" |
| 43 | +LABEL com.suse.supportlevel="techpreview" |
| 44 | +LABEL com.suse.eula="sle-bci" |
| 45 | +LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle" |
| 46 | +LABEL com.suse.release-stage="beta" |
| 47 | +# endlabelprefix |
| 48 | +LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%" |
| 49 | +ENV JAVA_BINDIR="/usr/lib64/jvm/java-21-openjdk-21/bin" |
| 50 | +ENV JAVA_HOME="/usr/lib64/jvm/java-21-openjdk-21" |
| 51 | +ENV JAVA_ROOT="/usr/lib64/jvm/java-21-openjdk-21" |
| 52 | +ENV JAVA_VERSION="21" |
| 53 | +RUN set -euo pipefail; [ -d $JAVA_HOME ]; [ -d $JAVA_BINDIR ]; [ -f "$JAVA_BINDIR/java" ] && [ -x "$JAVA_BINDIR/java" ] |
0 commit comments