-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathDockerfile
More file actions
74 lines (67 loc) · 4.62 KB
/
Dockerfile
File metadata and controls
74 lines (67 loc) · 4.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# SPDX-License-Identifier: MIT
# Copyright (c) 2025 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon.
# The content of THIS FILE IS AUTOGENERATED and should not be manually modified.
# It is maintained by the BCI team and generated by
# https://github.com/SUSE/BCI-dockerfile-generator
# Please submit bugfixes or comments via https://bugs.opensuse.org/
# You can contact the BCI team via https://github.com/SUSE/bci/discussions
#!UseOBSRepositories
#!ExclusiveArch: x86_64 s390x aarch64
#!BuildTag: bci/bci-slm60-kernel-module-devel:%OS_VERSION_ID_SP%-%RELEASE%
#!BuildTag: bci/bci-slm60-kernel-module-devel:%OS_VERSION_ID_SP%
#!BuildTag: bci/bci-slm60-kernel-module-devel:latest
#!BuildName: bci-bci-slm60-kernel-module-devel-%OS_VERSION_ID_SP%
#!BuildVersion: 16.0
FROM bci/bci-base:16.0
RUN set -euo pipefail; \
zypper -n install --no-recommends gcc-build kmod make patch gawk pesign-obs-integration dwarves libelf-devel SLES-release; \
zypper -n clean; \
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.bci.slm60-kernel-module-devel
LABEL org.opencontainers.image.authors="https://github.com/SUSE/bci/discussions"
LABEL org.opencontainers.image.title="SLE BCI SUSE Linux Micro 6.0 Kernel module development"
LABEL org.opencontainers.image.description="SUSE Linux Micro 6.0 Kernel module development container based on the SLE Base Container Image."
LABEL org.opencontainers.image.version="%OS_VERSION_ID_SP%-%RELEASE%"
LABEL org.opencontainers.image.url="https://www.suse.com/products/base-container-images/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
LABEL org.opencontainers.image.source="%SOURCEURL%"
LABEL org.opencontainers.image.ref.name="%OS_VERSION_ID_SP%-%RELEASE%"
LABEL org.opensuse.reference="registry.suse.com/bci/bci-slm60-kernel-module-devel:%OS_VERSION_ID_SP%-%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL com.suse.supportlevel="techpreview"
LABEL com.suse.supportlevel.until="2028-06-30"
LABEL com.suse.eula="sle-bci"
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle"
LABEL com.suse.release-stage="beta"
# endlabelprefix
LABEL io.artifacthub.package.readme-url="%SOURCEURL%/README.md"
LABEL io.artifacthub.package.logo-url="https://opensource.suse.com/bci/SLE_BCI_logomark_green.svg"
#!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
COPY kernel-devel-6.4.0-17.1.noarch.rpm .
#!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
COPY kernel-macros-6.4.0-17.1.noarch.rpm .
#!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
COPY kernel-syms-6.4.0-17.1.x86_64.rpm .
#!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
COPY kernel-default-devel-6.4.0-17.1.x86_64.rpm .
#!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
COPY kernel-syms-6.4.0-17.1.aarch64.rpm .
#!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
COPY kernel-default-devel-6.4.0-17.1.aarch64.rpm .
#!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
COPY kernel-64kb-devel-6.4.0-17.1.aarch64.rpm .
#!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
COPY kernel-syms-6.4.0-17.1.s390x.rpm .
#!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
COPY kernel-default-devel-6.4.0-17.1.s390x.rpm .
RUN set -euo pipefail; \
[ $(LC_ALL=C rpm --checksig -v *rpm | \
grep -c -E "^ *V3.*key ID 09d9ea69:") = 9 ] \
&& rpm -Uvh --oldpackage --force *.$(uname -m).rpm *.noarch.rpm \
&& rm -vf *.rpm \
&& rpmqpack | grep -E '^kernel-' | xargs zypper -n addlock