Download infra/cloud-controller/bootstrap.sh from windows2t2/cad-bench: direct link, hf CLI and curl.
- Browser
- Download file 673 Bytes
-
https://huggingface.co/windows2t2/cad-bench/resolve/main/infra/cloud-controller/bootstrap.sh
- Command line
-
hf download hf://windows2t2/cad-bench/infra/cloud-controller/bootstrap.sh
-
curl -L -o bootstrap.sh https://huggingface.co/windows2t2/cad-bench/resolve/main/infra/cloud-controller/bootstrap.sh
673 Bytes
| 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 | |