From c2d1aaa5d0067f1d6f33faff52ea3be43bef798b Mon Sep 17 00:00:00 2001 From: Tanmay Satam Date: Wed, 5 Jun 2024 16:07:17 -0400 Subject: [PATCH] Add 'final' stage to azext-aro using Azure CLI container with extension installed --- Dockerfile.ci-azext-aro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile.ci-azext-aro b/Dockerfile.ci-azext-aro index dce5c4ac4c1..758686c3f8b 100644 --- a/Dockerfile.ci-azext-aro +++ b/Dockerfile.ci-azext-aro @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/azure-cli:2.58.0 +FROM mcr.microsoft.com/azure-cli:2.61.0 AS builder RUN pip install pytest COPY /python /data/ @@ -6,3 +6,7 @@ COPY /python /data/ WORKDIR /data/az/aro RUN pytest --ignore=azext_aro/tests/latest/integration RUN python3 setup.py bdist_wheel + +FROM mcr.microsoft.com/azure-cli:2.61.0-cbl-mariner2.0 AS final +COPY --from=builder /data/az/aro/dist /opt/az +RUN az extension add --yes --source /opt/az/aro-*-py2.py3-none-any.whl