fix(init): 修复拉取沙箱镜像的功能

This commit is contained in:
Wenjie Zhang 2026-06-09 21:15:53 +08:00
parent 159bec21d6
commit 5c496e6347
2 changed files with 17 additions and 5 deletions

View File

@ -128,8 +128,7 @@ $images = @(
"nginx:alpine", "nginx:alpine",
"quay.io/coreos/etcd:v3.5.5", "quay.io/coreos/etcd:v3.5.5",
"postgres:16", "postgres:16",
"redis:7-alpine", "redis:7-alpine"
"enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:latest"
) )
# Pull each image # Pull each image
@ -149,8 +148,18 @@ foreach ($image in $images) {
} }
} }
$sandboxImage = "enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:latest"
Write-Host "🔄 Pulling ${sandboxImage}..." -ForegroundColor Yellow
docker pull $sandboxImage
if ($LASTEXITCODE -eq 0) {
Write-Host "✅ Successfully pulled ${sandboxImage}" -ForegroundColor Green
} else {
Write-Host "❌ Failed to pull ${sandboxImage}" -ForegroundColor Red
exit 1
}
Write-Host "" Write-Host ""
Write-Host "🎉 Initialization complete!" -ForegroundColor Green Write-Host "🎉 Initialization complete!" -ForegroundColor Green
Write-Host "==========================" -ForegroundColor Green Write-Host "==========================" -ForegroundColor Green
Write-Host "You can now run: docker compose up -d --build" -ForegroundColor Cyan Write-Host "You can now run: docker compose up -d --build" -ForegroundColor Cyan
Write-Host "This will start all services in development mode with hot-reload enabled." -ForegroundColor Cyan Write-Host "This will start all services in development mode with hot-reload enabled." -ForegroundColor Cyan

View File

@ -125,7 +125,6 @@ images=(
"quay.io/coreos/etcd:v3.5.5" "quay.io/coreos/etcd:v3.5.5"
"postgres:16" "postgres:16"
"redis:7-alpine" "redis:7-alpine"
"enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:latest"
) )
# Pull each image # Pull each image
@ -139,8 +138,12 @@ for image in "${images[@]}"; do
fi fi
done done
echo "🔄 Pulling enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:latest..."
docker pull enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:latest
echo "✅ Successfully pulled enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:latest"
echo "" echo ""
echo "🎉 Initialization complete!" echo "🎉 Initialization complete!"
echo "==========================" echo "=========================="
echo "You can now run: docker compose up -d --build" echo "You can now run: docker compose up -d --build"
echo "This will start all services in development mode with hot-reload enabled." echo "This will start all services in development mode with hot-reload enabled."