|
| 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: x86_64 s390x aarch64 |
| 18 | +#!BuildTag: bci/bci-slm60-kernel-module-devel:%OS_VERSION_ID_SP%-%RELEASE% |
| 19 | +#!BuildTag: bci/bci-slm60-kernel-module-devel:%OS_VERSION_ID_SP% |
| 20 | +#!BuildTag: bci/bci-slm60-kernel-module-devel:latest |
| 21 | +#!BuildName: bci-bci-slm60-kernel-module-devel-%OS_VERSION_ID_SP% |
| 22 | +#!BuildVersion: 16.0 |
| 23 | +FROM bci/bci-base:16.0 |
| 24 | + |
| 25 | +RUN set -euo pipefail; \ |
| 26 | + zypper -n install --no-recommends gcc-build kmod make patch gawk pesign-obs-integration dwarves libelf-devel SLES-release; \ |
| 27 | + zypper -n clean; \ |
| 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.slm60-kernel-module-devel |
| 32 | +LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions" |
| 33 | +LABEL org.opencontainers.image.title="SLE BCI SUSE Linux Micro 6.0 Kernel module development" |
| 34 | +LABEL org.opencontainers.image.description="SUSE Linux Micro 6.0 Kernel module development container based on the SLE Base Container Image." |
| 35 | +LABEL org.opencontainers.image.version="%OS_VERSION_ID_SP%-%RELEASE%" |
| 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="%OS_VERSION_ID_SP%-%RELEASE%" |
| 41 | +LABEL org.opensuse.reference="registry.suse.com/bci/bci-slm60-kernel-module-devel:%OS_VERSION_ID_SP%-%RELEASE%" |
| 42 | +LABEL org.openbuildservice.disturl="%DISTURL%" |
| 43 | +LABEL com.suse.supportlevel="techpreview" |
| 44 | +LABEL com.suse.supportlevel.until="2031-07-31" |
| 45 | +LABEL com.suse.eula="sle-bci" |
| 46 | +LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle" |
| 47 | +LABEL com.suse.release-stage="beta" |
| 48 | +# endlabelprefix |
| 49 | +LABEL io.artifacthub.package.readme-url="%SOURCEURL%/README.md" |
| 50 | +LABEL io.artifacthub.package.logo-url="https://opensource.suse.com/bci/SLE_BCI_logomark_green.svg" |
| 51 | +#!RemoteAssetUrl: https://api.opensuse.org/public/build/SUSE:ALP:Source:Standard:Core:1.0:Build/standard/x86_64/patchinfo.ga/kernel-devel-6.4.0-17.1.noarch.rpm |
| 52 | +COPY kernel-devel-6.4.0-17.1.noarch.rpm . |
| 53 | +#!RemoteAssetUrl: https://api.opensuse.org/public/build/SUSE:ALP:Source:Standard:Core:1.0:Build/standard/x86_64/patchinfo.ga/kernel-macros-6.4.0-17.1.noarch.rpm |
| 54 | +COPY kernel-macros-6.4.0-17.1.noarch.rpm . |
| 55 | +#!RemoteAssetUrl: https://api.opensuse.org/public/build/SUSE:ALP:Source:Standard:Core:1.0:Build/standard/x86_64/patchinfo.ga/kernel-syms-6.4.0-17.1.x86_64.rpm |
| 56 | +COPY kernel-syms-6.4.0-17.1.x86_64.rpm . |
| 57 | +#!RemoteAssetUrl: https://api.opensuse.org/public/build/SUSE:ALP:Source:Standard:Core:1.0:Build/standard/x86_64/patchinfo.ga/kernel-default-devel-6.4.0-17.1.x86_64.rpm |
| 58 | +COPY kernel-default-devel-6.4.0-17.1.x86_64.rpm . |
| 59 | +#!RemoteAssetUrl: https://api.opensuse.org/public/build/SUSE:ALP:Source:Standard:Core:1.0:Build/standard/aarch64/patchinfo.ga/kernel-syms-6.4.0-17.1.aarch64.rpm |
| 60 | +COPY kernel-syms-6.4.0-17.1.aarch64.rpm . |
| 61 | +#!RemoteAssetUrl: https://api.opensuse.org/public/build/SUSE:ALP:Source:Standard:Core:1.0:Build/standard/aarch64/patchinfo.ga/kernel-default-devel-6.4.0-17.1.aarch64.rpm |
| 62 | +COPY kernel-default-devel-6.4.0-17.1.aarch64.rpm . |
| 63 | +#!RemoteAssetUrl: https://api.opensuse.org/public/build/SUSE:ALP:Source:Standard:Core:1.0:Build/standard/aarch64/patchinfo.ga/kernel-64kb-devel-6.4.0-17.1.aarch64.rpm |
| 64 | +COPY kernel-64kb-devel-6.4.0-17.1.aarch64.rpm . |
| 65 | +#!RemoteAssetUrl: https://api.opensuse.org/public/build/SUSE:ALP:Source:Standard:Core:1.0:Build/standard/s390x/patchinfo.ga/kernel-syms-6.4.0-17.1.s390x.rpm |
| 66 | +COPY kernel-syms-6.4.0-17.1.s390x.rpm . |
| 67 | +#!RemoteAssetUrl: https://api.opensuse.org/public/build/SUSE:ALP:Source:Standard:Core:1.0:Build/standard/s390x/patchinfo.ga/kernel-default-devel-6.4.0-17.1.s390x.rpm |
| 68 | +COPY kernel-default-devel-6.4.0-17.1.s390x.rpm . |
| 69 | +RUN set -euo pipefail; \ |
| 70 | + [ $(LC_ALL=C rpm --checksig -v *rpm | \ |
| 71 | + grep -c -E "^ *V3.*key ID 09d9ea69:") = 9 ] \ |
| 72 | + && rpm -Uvh --oldpackage --force *.$(uname -m).rpm *.noarch.rpm \ |
| 73 | + && rm -vf *.rpm \ |
| 74 | + && rpmqpack | grep -E '^kernel-' | xargs zypper -n addlock |
0 commit comments