File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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[@]}"
3031sudo apt-get autoclean
3132sudo 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+
3351git clone --branch=4.2.0 --depth=1 https://github.com/wg/wrk.git /tmp/wrk
3452make -C /tmp/wrk -j
3553sudo cp /tmp/wrk/wrk /usr/local/bin/wrk
You can’t perform that action at this time.
0 commit comments