feat: initialize managed portal
This commit is contained in:
15
managed/store_dwell_alert/scripts/bootstrap_108.sh
Normal file
15
managed/store_dwell_alert/scripts/bootstrap_108.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
PROJECT_DIR="${PROJECT_DIR:-$HOME/store_dwell_alert}"
|
||||
PYTHON_BIN="${PYTHON_BIN:-python3}"
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ffmpeg python3-venv
|
||||
|
||||
"$PYTHON_BIN" -m venv "$PROJECT_DIR/.venv"
|
||||
"$PROJECT_DIR/.venv/bin/pip" install --upgrade pip
|
||||
"$PROJECT_DIR/.venv/bin/pip" install --no-cache-dir --index-url https://download.pytorch.org/whl/cu124 torch torchvision
|
||||
"$PROJECT_DIR/.venv/bin/pip" install -r "$PROJECT_DIR/requirements.txt"
|
||||
|
||||
echo "Bootstrap complete for $PROJECT_DIR"
|
||||
Reference in New Issue
Block a user