mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-19 00:17:54 +00:00
This patch updates the guest-components to new version with better error logging for CDH. It also allows the config of AA not having a coco_as token config. Also, the new version of CDH requires to build aws-lc-sys thus needs to install cmake for build. See https://github.com/kata-containers/kata-containers/actions/runs/15327923347/job/43127108813?pr=11197#step:6:1609 for details. Besides, the new version of guest-components have some fixes for SNP stack, which requires the updates of trustee side. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
52 lines
1.3 KiB
Docker
52 lines
1.3 KiB
Docker
# Copyright (c) 2024 Intel
|
|
# Copyright (c) 2024 IBM Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM ubuntu:24.04
|
|
ARG RUST_TOOLCHAIN
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV RUSTUP_HOME="/opt/rustup"
|
|
ENV CARGO_HOME="/opt/cargo"
|
|
ENV PATH="/opt/cargo/bin/:${PATH}"
|
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
RUN mkdir ${RUSTUP_HOME} ${CARGO_HOME} && chmod -R a+rwX ${RUSTUP_HOME} ${CARGO_HOME}
|
|
|
|
RUN apt-get update && \
|
|
apt-get --no-install-recommends install -y \
|
|
ca-certificates \
|
|
curl \
|
|
binutils \
|
|
clang \
|
|
g++ \
|
|
gcc \
|
|
git \
|
|
libssl-dev \
|
|
libtss2-dev \
|
|
make \
|
|
cmake \
|
|
musl-tools \
|
|
openssl \
|
|
perl \
|
|
pkg-config \
|
|
protobuf-compiler && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/ && \
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain ${RUST_TOOLCHAIN}
|
|
|
|
ENV LIBC="gnu"
|
|
RUN ARCH=$(uname -m); \
|
|
rust_arch=""; \
|
|
case "${ARCH}" in \
|
|
"aarch64") rust_arch="${ARCH}" ;; \
|
|
"ppc64le") rust_arch="powerpc64le" ;; \
|
|
"x86_64") rust_arch="${ARCH}" ;; \
|
|
"s390x") rust_arch="${ARCH}" ;; \
|
|
*) echo "Unsupported architecture: ${ARCH}" && exit 1 ;; \
|
|
esac; \
|
|
echo "RUST_ARCH=${rust_arch}" > /etc/profile.d/rust.sh; \
|
|
rustup target add "${rust_arch}-unknown-linux-${LIBC}"
|