Datasets:
Download scripts/outsider-install.sh from DrumsRL/drums-benchmarks: direct link, hf CLI and curl.
- Browser
- Download file 2.3 kB
-
https://huggingface.co/datasets/DrumsRL/drums-benchmarks/resolve/main/scripts/outsider-install.sh
- Command line
-
hf download hf://datasets/DrumsRL/drums-benchmarks/scripts/outsider-install.sh
-
curl -L -o outsider-install.sh https://huggingface.co/datasets/DrumsRL/drums-benchmarks/resolve/main/scripts/outsider-install.sh
2.3 kB
| # outsider-install.sh: the README / docs/install.md path for drumsd v0.2.1 on a stock Ubuntu 24.04 host, every step logged. | |
| # Run as the default user (ubuntu) from a directory holding the two release files copied from the operator laptop | |
| # (the repo is private before launch, so the README's anonymous curl returns 404: step 1 records that). | |
| # Usage: bash outsider-install.sh [--host-usd-per-hour X] -> ./outsider/ (logs) ; exit status of each step in steps.tsv | |
| cd "$(dirname "$0")"; O=$PWD/outsider; mkdir -p $O; : > $O/steps.tsv | |
| V=v0.2.1; T=drums-release-80ff10e07568.tar.gz; NOTE_SHA=f2c4e9782692c1701d236ec05dcfde7ebba89a9a34b71bae1aa957b1203c2e7f | |
| step() { local n=$1; shift; local t0=$(date +%s.%N); echo "### $(date -u +%FT%TZ) STEP $n: $*" | tee -a $O/all.log | |
| bash -c "$*" > $O/$n.log 2>&1; local rc=$?; local dt=$(echo "$(date +%s.%N) - $t0" | bc) | |
| tail -25 $O/$n.log | tee -a $O/all.log; printf '%s\t%s\t%.1f\t%s\n' "$n" "$rc" "$dt" "$*" >> $O/steps.tsv; echo "### rc=$rc ${dt}s" | tee -a $O/all.log; return $rc; } | |
| { uname -a; lsb_release -ds; nproc; free -g; df -h /; cat /sys/fs/cgroup/cgroup.controllers; } > $O/host.txt 2>&1 | |
| step 01-curl-anon "curl -fsSLO https://github.com/Drums-Labs/drumsd/releases/download/$V/$T.sha256; echo curl_rc=\$?" | |
| step 02-sha256-asset "sha256sum -c $T.sha256" | |
| step 03-sha256-notes "echo '$NOTE_SHA $T' | sha256sum -c" | |
| step 04-untar "tar xzf $T" | |
| step 05-install "cd drums-release-80ff10e07568 && sudo ./install.sh $*" | |
| step 06-venv "python3 -m venv ~/drums-venv" | |
| if [ "$(awk -F'\t' '$1=="06-venv"{print $2}' $O/steps.tsv)" != 0 ]; then | |
| step 06b-venv-workaround "sudo DEBIAN_FRONTEND=noninteractive apt-get install -y python3-venv && rm -rf ~/drums-venv && python3 -m venv ~/drums-venv" | |
| fi | |
| step 07-pip "~/drums-venv/bin/pip install drums-sdk && ~/drums-venv/bin/pip show drums-sdk" | |
| step 08-health "curl -s http://127.0.0.1:7070/healthz; echo; sudo cat /var/lib/drums/install-receipt.json | head -40" | |
| step 09-quickstart "export DRUMS_URL=http://127.0.0.1:7070 DRUMS_TOKEN=\$(sudo cat /etc/drums/token); timeout 900 ~/drums-venv/bin/python quickstart.py" | |
| cp /var/log/drums-install.log $O/drums-install.log 2>/dev/null || sudo cp /var/log/drums-install.log $O/drums-install.log; sudo chown $(id -u) $O/* | |
| echo OUTSIDER_DONE | tee -a $O/all.log | |