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:
parent
59aa981914
commit
79cd90c327
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user