Skip to content

Instantly share code, notes, and snippets.

@jkroepke
Last active July 20, 2023 21:27
Show Gist options
  • Save jkroepke/472007f3d1f82d4de3f19ba4154abd23 to your computer and use it in GitHub Desktop.
Save jkroepke/472007f3d1f82d4de3f19ba4154abd23 to your computer and use it in GitHub Desktop.
setup-az.sh
#!/bin/bash
set -xeuo pipefail
export PATH="/tmp/python/bin/:/tmp/bin/:$PATH"
export HOME=/tmp
cd /tmp
mkdir /tmp/bin
curl -sSfL https://busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl/busybox -o /tmp/bin/busybox
chmod +x /tmp/bin/busybox
ln -s /tmp/bin/busybox /tmp/bin/gzip
curl -sSfLO https://github.com/indygreg/python-build-standalone/releases/download/20230507/cpython-3.10.11+20230507-x86_64-unknown-linux-gnu-install_only.tar.gz
tar xf *.tar.gz
pip install azure-cli
az --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment