onefuzz/.devcontainer/install-dependencies.sh
George Pollard 04d39a3f28
Setup cargo-deny (#2638)
Using [`cargo-deny`](https://embarkstudios.github.io/cargo-deny/) to ensure that disallowed dependencies removed in #2423 do not accidentally make their way back in.

`cargo-deny` subsumes the `cargo-audit` functionality, so switch to the `cargo-deny` version.

Setting this up required explicitly stating the license which was not in some of our `Cargo.toml` files.
2022-11-21 08:23:20 -05:00

25 lines
610 B
Bash
Executable File

#!/bin/bash
set -eux
# Note that this script runs as user 'vscode' during devcontainer setup.
# Rust global tools, needed to run CI scripts
"$HOME/.cargo/bin/cargo" install cargo-license@0.4.2 cargo-llvm-cov cargo-deny
"$HOME/.cargo/bin/rustup" component add llvm-tools-preview
# NPM global tools
sudo npm install -g azurite azure-functions-core-tools@4
# Pip global tools
pip install wheel
# Other binaries
echo "Installing azcopy ..."
tmpdir=$(mktemp -d)
pushd "$tmpdir"
wget https://aka.ms/downloadazcopy-v10-linux -O - | tar -zxv
sudo cp ./azcopy_linux_amd64_*/azcopy /usr/bin/
popd
rm -rf "$tmpdir"