mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 19:35:32 +00:00
- Swap out an EoL fedora image for the latest Fixes: #6923 Signed-off-by: stevenhorsman <steven@uk.ibm.com>
67 lines
1.6 KiB
Docker
67 lines
1.6 KiB
Docker
# Copyright (c) 2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Kata osbuilder 'works best' on Fedora
|
|
FROM fedora:38
|
|
|
|
# Version of the Dockerfile - update if you change this file to avoid 'stale'
|
|
# images being pulled from the registry.
|
|
# Set AGENT_VERSION as an env variable to specify a specific version of Kata Agent to install
|
|
|
|
LABEL DOCKERFILE_VERSION="2.3"
|
|
|
|
ENV QAT_DRIVER_VER "QAT.L.4.15.0-00011.tar.gz"
|
|
ENV QAT_DRIVER_URL "https://downloadmirror.intel.com/649693/${QAT_DRIVER_VER}"
|
|
ENV QAT_CONFIGURE_OPTIONS "--enable-icp-sriov=guest"
|
|
ENV KATA_REPO_VERSION "main"
|
|
ENV AGENT_VERSION ""
|
|
ENV ROOTFS_OS "centos"
|
|
ENV OUTPUT_DIR "/output"
|
|
|
|
RUN dnf install -y \
|
|
bc \
|
|
bison \
|
|
debootstrap \
|
|
diffutils \
|
|
e2fsprogs \
|
|
elfutils-libelf-devel \
|
|
findutils \
|
|
flex \
|
|
gcc \
|
|
gcc-c++ \
|
|
git \
|
|
kiwi \
|
|
kmod \
|
|
openssl \
|
|
openssl-devel \
|
|
make \
|
|
parted \
|
|
patch \
|
|
qemu-img \
|
|
systemd-devel \
|
|
sudo \
|
|
xz \
|
|
yasm && \
|
|
dnf clean all
|
|
|
|
# Add in non-privileged user
|
|
RUN useradd qatbuilder -p "" && \
|
|
echo "qatbuilder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
|
|
# Pull in our local files
|
|
COPY ./run.sh /input/
|
|
COPY ./qat.conf /input/
|
|
|
|
# Change to a less privileged user before running the commands
|
|
USER qatbuilder
|
|
|
|
# Output is placed in the /output directory.
|
|
# We could make this a VOLUME to force it to be attached to the host, but let's
|
|
# just leave it as a container dir that can then be over-ridden from a host commandline
|
|
# volume setup.
|
|
# VOLUME /output
|
|
|
|
# By default build everything
|
|
CMD ["/input/run.sh"]
|