From 79cd90c327e6722aaf7caafd0e22095cf79a718b Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 May 2026 23:03:10 +0000 Subject: [PATCH] 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> --- deploy-clock.sh | 10 ++++++++++ deploy-notes.sh | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/deploy-clock.sh b/deploy-clock.sh index 1cfb595..387badb 100755 --- a/deploy-clock.sh +++ b/deploy-clock.sh @@ -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" diff --git a/deploy-notes.sh b/deploy-notes.sh index a50032a..58e8728 100755 --- a/deploy-notes.sh +++ b/deploy-notes.sh @@ -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"