cad-bench / infra /cloud-controller /bootstrap.sh
windows2t2's picture ShadowPenguin's picture
Duplicate from markov-ai/autocad-bench
1866d85
Raw History Blame Contribute Delete
673 Bytes
#!/bin/bash
set -euo pipefail
dnf install -y git jq tar gzip unzip
curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=/usr/local/bin sh
curl -fsSL -o /tmp/session-manager-plugin.rpm \
https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_64bit/session-manager-plugin.rpm
dnf install -y /tmp/session-manager-plugin.rpm
install -d -o ec2-user -g ec2-user /opt/autocad-bench
install -d -o ec2-user -g ec2-user /var/lib/autocad-bench
install -d -m 0700 -o root -g root /etc/autocad-bench
systemctl enable --now amazon-ssm-agent
touch /var/lib/autocad-bench/bootstrap-complete
chown ec2-user:ec2-user /var/lib/autocad-bench/bootstrap-complete