kata-deploy: Bump image to use alpine 3.22

As 3.18 is already EOL.

We need to add `--break-system-packages` to enforce the install of the
installation of the yq version that we rely on.  The tests have shown
that no breakage actually happens, fortunately.

Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
This commit is contained in:
Fabiano Fidêncio 2025-08-21 00:00:22 +02:00 committed by Fabiano Fidêncio
parent 1329ce355e
commit 9cc97ad35c

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
ARG BASE_IMAGE_NAME=alpine
ARG BASE_IMAGE_TAG=3.18
ARG BASE_IMAGE_TAG=3.22
FROM $BASE_IMAGE_NAME:$BASE_IMAGE_TAG
ARG KATA_ARTIFACTS=./kata-static.tar.xz
ARG DESTINATION=/opt/kata-artifacts
@ -34,7 +34,7 @@ RUN \
rm -f ${WORKDIR}/${KATA_ARTIFACTS} && \
apk del curl && \
apk --no-cache add py3-pip && \
pip install --no-cache-dir yq==3.2.3
pip install --no-cache-dir yq==3.2.3 --break-system-packages
COPY scripts ${DESTINATION}/scripts
COPY runtimeclasses ${DESTINATION}/runtimeclasses