fix: Address CodeRabbit review feedback

- Node version 21 → 22 (matches frontend package.json engines)
- Add language specifier to README code block (MD040)
- Add error handling to cd command in poststart.sh (SC2164)
- Add PYTHONPATH to seed test data launch config
- Use docker compose pull instead of hardcoded image tags
This commit is contained in:
Otto-AGPT
2026-02-11 17:38:47 +00:00
parent 8c79e170e7
commit fa8930da4c
5 changed files with 12 additions and 14 deletions

View File

@@ -94,7 +94,10 @@ pnpm install --frozen-lockfile
cd ..
# =============================================================================
# Pull Dependency Docker Images ONLY
# Pull Dependency Docker Images
# =============================================================================
# Use docker compose pull to get exact versions from compose files
# (single source of truth, no version drift)
# =============================================================================
echo "🐳 Pulling dependency Docker images..."
@@ -105,16 +108,8 @@ fi
# Check if Docker is available
if command -v docker &> /dev/null && docker info &> /dev/null; then
# Pull dependency images in parallel
docker pull supabase/gotrue:v2.170.0 &
docker pull supabase/studio:20250224-d10db0f &
docker pull kong:2.8.1 &
docker pull supabase/postgres:15.8.1.060 &
docker pull redis:latest &
docker pull rabbitmq:management &
# Wait for all pulls to complete
wait
# Pull images defined in docker-compose.yml (single source of truth)
docker compose pull db redis rabbitmq kong auth || echo "⚠️ Some images may not have pulled"
echo "✅ Dependency images pulled"
else
echo "⚠️ Docker not available during prebuild, images will be pulled on first start"

View File

@@ -13,7 +13,7 @@
echo "🔄 Starting dependency services..."
cd /workspaces/AutoGPT/autogpt_platform
cd /workspaces/AutoGPT/autogpt_platform || { echo "❌ Failed to cd to workspace"; exit 1; }
# Ensure Docker socket is available
if [ -e /var/run/docker-host.sock ]; then