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:
parent
79cd90c327
commit
b545fe0d1c
@ -113,15 +113,10 @@ if [ ! -f "docker-compose.yml" ]; then
|
|||||||
fail "docker-compose.yml not found in $REPO_DIR"
|
fail "docker-compose.yml not found in $REPO_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run docker-prep to pack @bytelyst/* packages
|
# Pull latest base images
|
||||||
log "Running docker-prep to pack @bytelyst/* packages..."
|
log "Pulling latest base images..."
|
||||||
if [ -f "scripts/docker-prep.sh" ]; then
|
docker pull bytelyst-common-base-backend:latest || warn "Failed to pull backend base image, using local cache"
|
||||||
chmod +x scripts/docker-prep.sh
|
docker pull bytelyst-common-base-web:latest || warn "Failed to pull web base image, using local cache"
|
||||||
./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
|
|
||||||
|
|
||||||
# Build and start services
|
# Build and start services
|
||||||
log "Building Docker images..."
|
log "Building Docker images..."
|
||||||
|
|||||||
@ -113,15 +113,10 @@ if [ ! -f "docker-compose.yml" ]; then
|
|||||||
fail "docker-compose.yml not found in $REPO_DIR"
|
fail "docker-compose.yml not found in $REPO_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run docker-prep to pack @bytelyst/* packages
|
# Pull latest base images
|
||||||
log "Running docker-prep to pack @bytelyst/* packages..."
|
log "Pulling latest base images..."
|
||||||
if [ -f "scripts/docker-prep.sh" ]; then
|
docker pull bytelyst-common-base-backend:latest || warn "Failed to pull backend base image, using local cache"
|
||||||
chmod +x scripts/docker-prep.sh
|
docker pull bytelyst-common-base-web:latest || warn "Failed to pull web base image, using local cache"
|
||||||
./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
|
|
||||||
|
|
||||||
# Build and start services
|
# Build and start services
|
||||||
log "Building Docker images..."
|
log "Building Docker images..."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user