mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-14 13:29:19 +00:00
Add config fragment, build script, and CI integration for building Mellanox MLX5/InfiniBand kernel modules as a standalone disk image. The orchestrator script (build-kernel-modules-images.sh) builds the kernel with extra module config fragments, runs modules_install, filters modules by subsystem into per-set staging trees, and packages each into its own disk image using build-modules-volume.sh. Since these modules are built within the Kata CI using the same KBUILD_SIGN_PIN, they are signed and loadable on the official released Kata kernel. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
40 lines
850 B
Docker
40 lines
850 B
Docker
# Copyright (c) 2021 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM ubuntu:24.04
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV INSTALL_IN_GOPATH=false
|
|
|
|
ARG ARCH
|
|
|
|
COPY install_yq.sh /usr/bin/install_yq.sh
|
|
|
|
# kernel deps
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
bc \
|
|
bison \
|
|
build-essential \
|
|
ca-certificates \
|
|
curl \
|
|
debhelper \
|
|
dwarves \
|
|
flex \
|
|
git \
|
|
iptables \
|
|
kmod \
|
|
libdw-dev \
|
|
libelf-dev \
|
|
libssl-dev \
|
|
gettext \
|
|
rsync \
|
|
cpio \
|
|
cryptsetup-bin \
|
|
patch \
|
|
python3 && \
|
|
if [ "${ARCH}" != "$(uname -m)" ]; then apt-get install --no-install-recommends -y gcc-"${ARCH}"-linux-gnu binutils-"${ARCH}"-linux-gnu; fi && \
|
|
apt-get clean && apt-get autoclean && rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN install_yq.sh
|