Initial commit
All checks were successful
Build and Push RunPod Docker Image / build-and-push (push) Successful in 1m26s
All checks were successful
Build and Push RunPod Docker Image / build-and-push (push) Successful in 1m26s
This commit is contained in:
53
start.sh
Normal file
53
start.sh
Normal file
@@ -0,0 +1,53 @@
|
||||
#!/bin/bash
|
||||
# RunPod container startup script
|
||||
# This script initializes the container environment and starts all services
|
||||
|
||||
set -e
|
||||
|
||||
echo "========================================"
|
||||
echo " RunPod AI Orchestrator - Starting"
|
||||
echo "========================================"
|
||||
|
||||
# [1/7] Start SSH server (required by RunPod)
|
||||
echo "[1/7] Starting SSH server..."
|
||||
service ssh start
|
||||
echo " ✓ SSH server started"
|
||||
|
||||
# [2/7] Cloning repositories
|
||||
echo "[2/7] Cloning repositories..."
|
||||
mkdir -p ~/.ssh
|
||||
touch ~/.ssh/known_hosts
|
||||
ssh-keyscan dev.pivoine.art >> ~/.ssh/known_hosts
|
||||
git clone ssh://git@dev.pivoine.art:2222/valknar/bin.git "$PWD/bin"
|
||||
git clone ssh://git@dev.pivoine.art:2222/valknar/runpod-ai-orchestrator.git "$PWD/orchestrator"
|
||||
echo " ✓ Repositories cloned"
|
||||
|
||||
# [3/7] Add $PWD/bin to PATH for arty and custom scripts
|
||||
echo "[3/7] Configuring PATH..."
|
||||
ln -sf "$PWD/bin/aritfact_git_download.sh" "$PWD/bin/arty"
|
||||
export PATH="$PWD/bin:$PATH"
|
||||
echo " ✓ PATH updated: $PWD/bin added"
|
||||
|
||||
# [4/7] Setting up with arty
|
||||
echo "[4/7] Setting up with arty..."
|
||||
cd "$PWD/orchestrator"
|
||||
arty setup
|
||||
cd -
|
||||
echo " ✓ Setup complete"
|
||||
|
||||
# Display connection information
|
||||
echo ""
|
||||
echo "========================================"
|
||||
echo " Container Ready"
|
||||
echo "========================================"
|
||||
echo "Services:"
|
||||
echo " - SSH: port 22"
|
||||
if [ -n "${TAILSCALE_IP:-}" ] && [ "$TAILSCALE_IP" != "not connected" ]; then
|
||||
echo " - Tailscale IP: $TAILSCALE_IP"
|
||||
fi
|
||||
echo ""
|
||||
echo "========================================"
|
||||
|
||||
# Keep container running
|
||||
echo "Container is running. Press Ctrl+C to stop."
|
||||
sleep infinity
|
||||
Reference in New Issue
Block a user