Skip to content

Commit af33918

Browse files
authored
[release] Add Azure CLI to base-extra image (#58012)
Add Azure CLI and dependencies into `base-extra` images --------- Signed-off-by: kevin <[email protected]>
1 parent 6da558b commit af33918

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

release/ray_release/byod/byod.Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ APT_PKGS=(
2222
libglfw3
2323
libjemalloc-dev
2424
libosmesa6-dev
25+
lsb-release
2526
patchelf
2627
)
2728

@@ -30,6 +31,23 @@ sudo apt-get install -y --no-install-recommends "${APT_PKGS[@]}"
3031
sudo apt-get autoclean
3132
sudo rm -rf /etc/apt/sources.list.d/*
3233

34+
sudo mkdir -p /etc/apt/keyrings
35+
curl -sLS https://packages.microsoft.com/keys/microsoft.asc |
36+
gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
37+
sudo chmod go+r /etc/apt/keyrings/microsoft.gpg
38+
39+
AZ_VER=2.72.0
40+
AZ_DIST="$(lsb_release -cs)"
41+
echo "Types: deb
42+
URIs: https://packages.microsoft.com/repos/azure-cli/
43+
Suites: ${AZ_DIST}
44+
Components: main
45+
Architectures: $(dpkg --print-architecture)
46+
Signed-by: /etc/apt/keyrings/microsoft.gpg" | sudo tee /etc/apt/sources.list.d/azure-cli.sources
47+
48+
sudo apt-get update -y
49+
sudo apt-get install -y azure-cli="${AZ_VER}"-1~"${AZ_DIST}"
50+
3351
git clone --branch=4.2.0 --depth=1 https://github.com/wg/wrk.git /tmp/wrk
3452
make -C /tmp/wrk -j
3553
sudo cp /tmp/wrk/wrk /usr/local/bin/wrk

0 commit comments

Comments
 (0)