mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-11 15:25:16 -05:00
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:
@@ -118,7 +118,7 @@ Press `Ctrl+Shift+P` → "Tasks: Run Task":
|
||||
|
||||
## 📁 Project Structure
|
||||
|
||||
```
|
||||
```text
|
||||
autogpt_platform/ # This folder
|
||||
├── .devcontainer/ # Codespaces/devcontainer config
|
||||
├── .vscode/ # VS Code settings
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"ghcr.io/devcontainers/features/github-cli:1": {},
|
||||
"ghcr.io/devcontainers/features/node:1": {
|
||||
"version": "21",
|
||||
"version": "22",
|
||||
"nodeGypDependencies": true
|
||||
},
|
||||
"ghcr.io/devcontainers/features/python:1": {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -94,6 +94,9 @@
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/backend/test/e2e_test_data.py",
|
||||
"cwd": "${workspaceFolder}/backend",
|
||||
"env": {
|
||||
"PYTHONPATH": "${workspaceFolder}/backend"
|
||||
},
|
||||
"console": "integratedTerminal"
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user