fix: start.sh
All checks were successful
Build and Push RunPod Docker Image / build-and-push (push) Successful in 1m30s
All checks were successful
Build and Push RunPod Docker Image / build-and-push (push) Successful in 1m30s
This commit is contained in:
24
start.sh
24
start.sh
@@ -8,8 +8,8 @@ echo "========================================"
|
|||||||
echo " RunPod AI Orchestrator - Starting"
|
echo " RunPod AI Orchestrator - Starting"
|
||||||
echo "========================================"
|
echo "========================================"
|
||||||
|
|
||||||
# [1/7] Start SSH server (required by RunPod)
|
# [1/6] Start SSH server (required by RunPod)
|
||||||
echo "[1/7] Starting SSH server..."
|
echo "[1/6] Starting SSH server..."
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
chmod 700 ~/.ssh
|
chmod 700 ~/.ssh
|
||||||
echo "$PUBLIC_KEY" >> ~/.ssh/authorized_keys
|
echo "$PUBLIC_KEY" >> ~/.ssh/authorized_keys
|
||||||
@@ -17,8 +17,8 @@ chmod 700 ~/.ssh/authorized_keys
|
|||||||
service ssh start
|
service ssh start
|
||||||
echo " ✓ SSH server started"
|
echo " ✓ SSH server started"
|
||||||
|
|
||||||
# [2/7] Cloning repositories
|
# [2/6] Cloning repositories
|
||||||
echo "[2/7] Cloning repositories..."
|
echo "[2/6] Cloning repositories..."
|
||||||
ssh-keyscan -p 2222 -t rsa dev.pivoine.art >> ~/.ssh/known_hosts
|
ssh-keyscan -p 2222 -t rsa dev.pivoine.art >> ~/.ssh/known_hosts
|
||||||
chmod 700 ~/.ssh/known_hosts
|
chmod 700 ~/.ssh/known_hosts
|
||||||
if [ ! -d "$PWD/bin" ] ; then
|
if [ ! -d "$PWD/bin" ] ; then
|
||||||
@@ -38,14 +38,14 @@ else
|
|||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# [3/7] Add $PWD/bin to PATH for arty and custom scripts
|
# [3/6] Add $PWD/bin to PATH for arty and custom scripts
|
||||||
echo "[3/7] Configuring PATH..."
|
echo "[3/6] Configuring PATH..."
|
||||||
ln -sf "$PWD/bin/artifact_git_download.sh" /usr/local/bin/arty
|
ln -sf "$PWD/bin/artifact_git_download.sh" /usr/local/bin/arty
|
||||||
export PATH="$PWD/bin:$PATH"
|
export PATH="$PWD/bin:$PATH"
|
||||||
echo " ✓ PATH updated: $PWD/bin added"
|
echo " ✓ PATH updated: $PWD/bin added"
|
||||||
|
|
||||||
# [4/7] Setting up with arty
|
# [4/6] Setting up with arty
|
||||||
echo "[4/7] Setting up with arty..."
|
echo "[4/6] Setting up with arty..."
|
||||||
if [ ! "$SKIP_ARTY_SETUP" ] ; then
|
if [ ! "$SKIP_ARTY_SETUP" ] ; then
|
||||||
cd "$PWD/orchestrator"
|
cd "$PWD/orchestrator"
|
||||||
arty setup
|
arty setup
|
||||||
@@ -55,15 +55,15 @@ else
|
|||||||
echo " ⏭ Skipping"
|
echo " ⏭ Skipping"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# [5/7] Setting up tailscale
|
# [5/6] Setting up tailscale
|
||||||
echo "[5/7] Starting tailscale..."
|
echo "[5/6] Starting tailscale..."
|
||||||
cd "$PWD/orchestrator"
|
cd "$PWD/orchestrator"
|
||||||
arty tailscale/start
|
arty tailscale/start
|
||||||
cd -
|
cd -
|
||||||
echo " ✓ Started successfully"
|
echo " ✓ Started successfully"
|
||||||
|
|
||||||
# [6/7] Starting supervisor
|
# [6/6] Starting supervisor
|
||||||
echo "[6/7] Starting supervisor..."
|
echo "[6/6] Starting supervisor..."
|
||||||
cd "$PWD/orchestrator"
|
cd "$PWD/orchestrator"
|
||||||
arty supervisor/start
|
arty supervisor/start
|
||||||
cd -
|
cd -
|
||||||
|
|||||||
Reference in New Issue
Block a user