File tree 1 file changed +10
-7
lines changed
dockers/docker-sonic-mgmt
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,14 @@ ENV DEBIAN_FRONTEND=noninteractive
5
5
6
6
RUN apt-get update && apt-get install -y apt-transport-https \
7
7
apt-utils \
8
- azure-cli \
9
8
build-essential \
10
9
ca-certificates \
11
10
cmake \
12
11
curl \
13
12
default-jre \
14
13
git \
14
+ gnupg \
15
+ gnupg-agent \
15
16
iproute2 \
16
17
iputils-ping \
17
18
isc-dhcp-client \
@@ -122,16 +123,18 @@ RUN pip install allure-pytest==2.8.22 \
122
123
&& pip install scapy==2.4.5 --upgrade --ignore-installed
123
124
124
125
# Install docker-ce-cli
125
- RUN apt-get update \
126
- && apt-get install -y \
127
- apt-transport-https \
128
- ca-certificates \
129
- gnupg-agent \
130
- && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
126
+ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
131
127
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
132
128
&& apt-get update \
133
129
&& apt-get install -y docker-ce-cli
134
130
131
+ # Install Azure CLI, following https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt#option-2-step-by-step-installation-instructions
132
+ RUN mkdir -p /etc/apt/keyrings \
133
+ && curl -sLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/keyrings/microsoft.gpg > /dev/null \
134
+ && chmod go+r /etc/apt/keyrings/microsoft.gpg \
135
+ && echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ `lsb_release -cs` main" | tee /etc/apt/sources.list.d/azure-cli.list \
136
+ && apt-get update && apt-get install -y azure-cli
137
+
135
138
## Copy and install sonic-mgmt docker dependencies
136
139
COPY \
137
140
{% for deb in docker_sonic_mgmt_debs .split (' ' ) -%}
You can’t perform that action at this time.
0 commit comments