mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
28 lines
695 B
Plaintext
28 lines
695 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * hardware_enablement/kmm-kernel-module-management.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="kmm-building-a-moduleloader-image_{context}"]
|
|
= Building a ModuleLoader image
|
|
|
|
.Procedure
|
|
|
|
* In addition to building the kernel module itself, include the binary firmware in the builder image:
|
|
+
|
|
[source,dockerfile]
|
|
----
|
|
FROM registry.redhat.io/ubi9/ubi-minimal as builder
|
|
|
|
# Build the kmod
|
|
|
|
RUN ["mkdir", "/firmware"]
|
|
RUN ["curl", "-o", "/firmware/firmware.bin", "https://artifacts.example.com/firmware.bin"]
|
|
|
|
FROM registry.redhat.io/ubi9/ubi-minimal
|
|
|
|
# Copy the kmod, install modprobe, run depmod
|
|
|
|
COPY --from=builder /firmware /firmware
|
|
----
|