diff --git a/containers/Dockerfile b/containers/Dockerfile index 3d5c08a2..04a69d2b 100644 --- a/containers/Dockerfile +++ b/containers/Dockerfile @@ -2,6 +2,8 @@ FROM quay.io/openshift/origin-tests:latest as origintests +FROM mcr.microsoft.com/azure-cli:latest as azure-cli + FROM quay.io/centos/centos:stream9 LABEL org.opencontainers.image.authors="Red Hat OpenShift Chaos Engineering" @@ -12,12 +14,13 @@ ENV KUBECONFIG /root/.kube/config COPY --from=origintests /usr/bin/oc /usr/bin/oc COPY --from=origintests /usr/bin/kubectl /usr/bin/kubectl +# Copy azure client binary from azure-cli image +COPY --from=azure-cli /usr/local/bin/az /usr/bin/az + # Install dependencies RUN yum install epel-release -y && \ yum install -y git python python3-pip jq gettext && \ python3 -m pip install -U pip && \ - rpm --import https://packages.microsoft.com/keys/microsoft.asc && \ - echo -e "[azure-cli]\nname=Azure CLI\nbaseurl=https://packages.microsoft.com/yumrepos/azure-cli\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/azure-cli.repo && yum install -y azure-cli && \ git clone https://github.com/openshift-scale/kraken /root/kraken && \ mkdir -p /root/.kube && cd /root/kraken && \ pip3 install -r requirements.txt