mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-04-04 02:53:45 +00:00
Fixed a bug with the debug kernel build where common/ was repeated after the common path variable, resulting in the debug confs never being picked up. This exposed a subsequent bug where the debug conf was included in other builds, this is also fixed by creating a separate directory for debug confs with one file at the moment, debug.conf that contains debug configurations and bpf specific configs. To enable kernel builds (specifically for bpf) the dwarves package was added to the kernel dockerfile for the pahole package. Signed-off-by: Agam Dua <agam_dua@apple.com>
39 lines
828 B
Docker
39 lines
828 B
Docker
# Copyright (c) 2021 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM ubuntu:22.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 \
|
|
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
|