Integrated sonobuoy and ksi-based sanity checks script
Related-PROD: K0RQA-15
Change-Id: I3461a4e63cfae6833d852bba19f3b56fd7982f0a
diff --git a/k8s/docker-container-toolset-full b/k8s/docker-container-toolset-full
index a41cc3b..4308ee4 100644
--- a/k8s/docker-container-toolset-full
+++ b/k8s/docker-container-toolset-full
@@ -28,8 +28,10 @@
RUN export TZ="America/Chicago" && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
add-apt-repository ppa:rmescandon/yq && \
+ add-apt-repository ppa:deadsnakes/ppa && \
apt-get clean && apt-get update && \
apt-get install -y python3-pip python3-venv vim git iperf3 iperf mtr htop iputils-ping traceroute tcpdump wget iproute2 curl screen qemu-utils jq yq && \
+ apt-get install -y python3.12 python3.12-venv python3.12-dev && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
@@ -56,10 +58,12 @@
rm -rf /opt/res-files/.git && \
rm -rf /opt/cfg-checker/.git
-RUN cd /opt/ksi/ && \
- python3 -m venv .ksivenv && \
+RUN cp /opt/res-files/k8s/sanity-checks/test_sanity_checks.py /opt/ksi/ && \
+ cd /opt/ksi/ && \
+ python3.12 -m venv .ksivenv && \
. .ksivenv/bin/activate && \
pip3 install --no-cache-dir -r si_tests/requirements.txt && \
+ pip3 install --no-cache-dir pytest-subtests pytest-html && \
deactivate
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
@@ -73,6 +77,12 @@
pip3 install --no-cache-dir -r requirements.txt && \
deactivate
+RUN mkdir /opt/conformance && \
+ cd /opt/conformance && \
+ wget https://github.com/vmware-tanzu/sonobuoy/releases/download/v0.57.3/sonobuoy_0.57.3_linux_amd64.tar.gz && \
+ tar -xf sonobuoy_0.57.3_linux_amd64.tar.gz && \
+ mv sonobuoy /usr/local/bin/
+
RUN printf "LABELS:\n IMAGE_TAG: k0rdent" > /dockerimage_metadata
WORKDIR /artifacts