fix(deploy): add docker-prep step before Docker build

The deployment scripts were missing the docker-prep.sh step which is required
to pack @bytelyst/* packages into .docker-deps directory and modify package.json
files to use local tarballs. Without this, Docker build fails trying to install
packages from npm registry instead of local tarballs.

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:03:10 +00:00
parent 59aa981914
commit 79cd90c327
2 changed files with 20 additions and 0 deletions

View File

@ -113,6 +113,16 @@ 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
# Build and start services
log "Building Docker images..."
docker compose build || fail "Docker build failed"

View File

@ -113,6 +113,16 @@ 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
# Build and start services
log "Building Docker images..."
docker compose build || fail "Docker build failed"