-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·64 lines (53 loc) · 1.9 KB
/
install.sh
File metadata and controls
executable file
·64 lines (53 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
# Once the workspace is created, this script will execute.
# This will happen in place of the default behavior of the workspace system,
# which is to symlink the dotfiles copied from this repo to the home directory in the workspace.
set -euo pipefail
# Track the results of the install script
exec &> "$HOME/install.log"
echo "Install script executing..."
# Attempting to do a post-install script
# ~/dotfiles is the path where this repo is cloned to within the workspace
nohup ~/dotfiles/post-install.sh > ~/post-install.log 2>&1 &
disown
# Symlink dotfiles to the root within the workspace
echo "Symlinking dotfiles to the root within the workspace..."
DOTFILES_PATH="$HOME/dotfiles"
find $DOTFILES_PATH -type f -path "$DOTFILES_PATH/.*" |
while read df; do
link=${df/$DOTFILES_PATH/$HOME}
mkdir -p "$(dirname "$link")"
ln -sf "$df" "$link"
done
# Update Claude Code
echo "Updating Claude Code..."
if command -v volta &>/dev/null; then
volta install @anthropic-ai/claude-code@latest
echo "claude version: $(claude --version 2>&1)"
else
echo "volta not found, falling back to claude update"
claude update || true
fi
# Configure Rust tooling
echo "Configuring Rust tooling..."
if command -v rustup &>/dev/null; then
echo "Rust already installed: $(rustc --version)"
rustup update stable
else
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
echo "Rust installed: $(rustc --version)"
fi
# Configure protoc
echo "Installing protoc..."
if command -v protoc &>/dev/null; then
echo "protoc already installed: $(protoc --version)"
else
sudo apt-get update -qq && sudo apt-get install -y -qq protobuf-compiler
fi
# Clone main working repositories
echo "Cloning main working repositories..."
cd dd
git clone https://github.com/DataDog/lading.git
git clone https://github.com/DataDog/single-machine-performance.git
cd -