From 4b3aa3b8c8b6cfb0a5897d6486789e33f8aff7cf Mon Sep 17 00:00:00 2001 From: "shashanka.balakuntala" Date: Thu, 15 Jun 2023 13:39:39 +0530 Subject: [PATCH] Modify azure cli to install through apt-get and pyaml to specific version supported by py2 --- dockers/docker-sonic-mgmt/Dockerfile.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dockers/docker-sonic-mgmt/Dockerfile.j2 b/dockers/docker-sonic-mgmt/Dockerfile.j2 index f3b95c0cb226..bcb13b570ccf 100755 --- a/dockers/docker-sonic-mgmt/Dockerfile.j2 +++ b/dockers/docker-sonic-mgmt/Dockerfile.j2 @@ -5,6 +5,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y apt-transport-https \ apt-utils \ + azure-cli \ build-essential \ ca-certificates \ cmake \ @@ -75,6 +76,7 @@ RUN pip install allure-pytest==2.8.22 \ pexpect \ prettytable \ psutil \ + pyaml==21.10.1 \ pyasn1==0.1.9 \ pycryptodome==3.9.8 \ pyfiglet \ @@ -130,9 +132,6 @@ RUN apt-get update \ && apt-get update \ && apt-get install -y docker-ce-cli -# Install Azure CLI -RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash - ## Copy and install sonic-mgmt docker dependencies COPY \ {% for deb in docker_sonic_mgmt_debs.split(' ') -%}