From 5c496e6347b49d9f89eaf40fe3c729cd252a0cb7 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Tue, 9 Jun 2026 21:15:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(init):=20=E4=BF=AE=E5=A4=8D=E6=8B=89?= =?UTF-8?q?=E5=8F=96=E6=B2=99=E7=AE=B1=E9=95=9C=E5=83=8F=E7=9A=84=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/init.ps1 | 15 ++++++++++++--- scripts/init.sh | 7 +++++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/scripts/init.ps1 b/scripts/init.ps1 index 8a7d6bd8..c4a3986d 100644 --- a/scripts/init.ps1 +++ b/scripts/init.ps1 @@ -128,8 +128,7 @@ $images = @( "nginx:alpine", "quay.io/coreos/etcd:v3.5.5", "postgres:16", - "redis:7-alpine", - "enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:latest" + "redis:7-alpine" ) # 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 "🎉 Initialization complete!" -ForegroundColor Green Write-Host "==========================" -ForegroundColor Green 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 \ No newline at end of file +Write-Host "This will start all services in development mode with hot-reload enabled." -ForegroundColor Cyan diff --git a/scripts/init.sh b/scripts/init.sh index 0bda5638..d742a68f 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -125,7 +125,6 @@ images=( "quay.io/coreos/etcd:v3.5.5" "postgres:16" "redis:7-alpine" - "enterprise-public-cn-beijing.cr.volces.com/vefaas-public/all-in-one-sandbox:latest" ) # Pull each image @@ -139,8 +138,12 @@ for image in "${images[@]}"; do fi 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 "🎉 Initialization complete!" echo "==========================" echo "You can now run: docker compose up -d --build" -echo "This will start all services in development mode with hot-reload enabled." \ No newline at end of file +echo "This will start all services in development mode with hot-reload enabled."