refactor(deploy): use shared base images instead of docker-prep

Update deployment scripts to pull shared base images instead of running
docker-prep.sh to pack @bytelyst/* tarballs.

Changes:
- Remove docker-prep.sh execution
- Add base image pull step (backend and web)
- Use local cache if pull fails

Benefits:
- Faster deployment (no tarball packing)
- Simpler deployment process
- Consistent package versions via base images

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
root 2026-05-09 23:23:00 +00:00
parent 79cd90c327
commit b545fe0d1c
2 changed files with 8 additions and 18 deletions

View File

@ -113,15 +113,10 @@ if [ ! -f "docker-compose.yml" ]; then
fail "docker-compose.yml not found in $REPO_DIR"
fi
# Run docker-prep to pack @bytelyst/* packages
log "Running docker-prep to pack @bytelyst/* packages..."
if [ -f "scripts/docker-prep.sh" ]; then
chmod +x scripts/docker-prep.sh
./scripts/docker-prep.sh || fail "docker-prep.sh failed"
ok "docker-prep completed successfully"
else
fail "docker-prep.sh not found in $REPO_DIR/scripts/"
fi
# Pull latest base images
log "Pulling latest base images..."
docker pull bytelyst-common-base-backend:latest || warn "Failed to pull backend base image, using local cache"
docker pull bytelyst-common-base-web:latest || warn "Failed to pull web base image, using local cache"
# Build and start services
log "Building Docker images..."

View File

@ -113,15 +113,10 @@ if [ ! -f "docker-compose.yml" ]; then
fail "docker-compose.yml not found in $REPO_DIR"
fi
# Run docker-prep to pack @bytelyst/* packages
log "Running docker-prep to pack @bytelyst/* packages..."
if [ -f "scripts/docker-prep.sh" ]; then
chmod +x scripts/docker-prep.sh
./scripts/docker-prep.sh || fail "docker-prep.sh failed"
ok "docker-prep completed successfully"
else
fail "docker-prep.sh not found in $REPO_DIR/scripts/"
fi
# Pull latest base images
log "Pulling latest base images..."
docker pull bytelyst-common-base-backend:latest || warn "Failed to pull backend base image, using local cache"
docker pull bytelyst-common-base-web:latest || warn "Failed to pull web base image, using local cache"
# Build and start services
log "Building Docker images..."