More improvements to bootstrap

This commit is contained in:
Niels Geens
2025-03-17 10:38:36 +01:00
parent 2d655781c8
commit 5c1ef4d9e7
4 changed files with 58 additions and 25 deletions

View File

@@ -1,8 +1,13 @@
#!/bin/bash
# bootstrap.sh - Initialize SIA (Self-Improving Agent) environment for cloud deployment
set -eo pipefail # Exit on any error, pipe failures
# Check if required environment variables are set
if [ -z "$SIA_REPO_URL" ]; then
echo "Error: SIA_REPO_URL environment variable is not set"
exit 1
fi
# Create directory structure
echo "Creating directory structure..."
mkdir -p "/root/data/iterations"
@@ -29,10 +34,14 @@ npm install
npm run build
ln -s "/root/sia/web/dist" "/root/static"
# Install SIA dependencies
echo "Installing SIA dependencies..."
"/root/sia/scripts/install.sh"
# Finetune model
echo "Finetuning model..."
train
# Start SIA using restart script
echo "Start restart script..."
echo "Run restart script..."
"/root/sia/scripts/restart.sh"