From 88f3b2439638bfb6600d699444d448c0cc10c92a Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Thu, 3 Oct 2024 14:38:42 -0400 Subject: [PATCH] Run yum update in stress images --- .../stress-test-addons/images/test-resource-deployer/Dockerfile | 2 ++ tools/stress-cluster/services/Stress.Watcher/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/stress-cluster/cluster/kubernetes/stress-test-addons/images/test-resource-deployer/Dockerfile b/tools/stress-cluster/cluster/kubernetes/stress-test-addons/images/test-resource-deployer/Dockerfile index 542264b9d7f8..fdef974caf88 100644 --- a/tools/stress-cluster/cluster/kubernetes/stress-test-addons/images/test-resource-deployer/Dockerfile +++ b/tools/stress-cluster/cluster/kubernetes/stress-test-addons/images/test-resource-deployer/Dockerfile @@ -1,5 +1,7 @@ FROM mcr.microsoft.com/azure-powershell:mariner-2 +RUN yum update -y + RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl RUN kubectl version --client diff --git a/tools/stress-cluster/services/Stress.Watcher/Dockerfile b/tools/stress-cluster/services/Stress.Watcher/Dockerfile index 5418963f1767..f4523a09f370 100644 --- a/tools/stress-cluster/services/Stress.Watcher/Dockerfile +++ b/tools/stress-cluster/services/Stress.Watcher/Dockerfile @@ -1,5 +1,7 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build +RUN yum update -y + COPY ./src /src RUN cd /src && dotnet publish -c Release -o /stresswatcher -r linux-x64 -f net8.0 -p:PublishSingleFile=true --self-contained