Skip to content

Commit

Permalink
Add az iot ops extension install (#16)
Browse files Browse the repository at this point in the history
Auto install the `az iot ops` extension during codespace creation to
make things easier for users.
  • Loading branch information
jlian authored Nov 8, 2023
2 parents df8888d + a99fb58 commit 524702b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec
echo '[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh' >> ~/.bashrc && \
echo 'eval "$(atuin init bash)"' >> ~/.bashrc

# Install az iot ops extension
# TODO: change to use official extension management method once released
az extension add --source $(curl -w "%{url_effective}\n" -I -L -s -S https://aka.ms/aziotopscli-latest -o /dev/null) -y

# This env var is important to allow k3s to support shared mounts, required for CSI driver
# Temporary fix until made default https://github.com/k3d-io/k3d/pull/1268#issuecomment-1745466499
export K3D_FIX_MOUNTS=1
Expand Down

0 comments on commit 524702b

Please sign in to comment.