From b545fe0d1c93e644676f8686ae9604b4060e324a Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 May 2026 23:23:00 +0000 Subject: [PATCH] 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> --- deploy-clock.sh | 13 ++++--------- deploy-notes.sh | 13 ++++--------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/deploy-clock.sh b/deploy-clock.sh index 387badb..8e19c5c 100755 --- a/deploy-clock.sh +++ b/deploy-clock.sh @@ -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..." diff --git a/deploy-notes.sh b/deploy-notes.sh index 58e8728..e5584f5 100755 --- a/deploy-notes.sh +++ b/deploy-notes.sh @@ -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..."