Skip to content

fix: ensure db-init-prod service builds correctly in Docker production#48

Merged
therealbrad merged 1 commit into
mainfrom
fix/docker-build-db-init
Jan 17, 2026
Merged

fix: ensure db-init-prod service builds correctly in Docker production#48
therealbrad merged 1 commit into
mainfrom
fix/docker-build-db-init

Conversation

@therealbrad
Copy link
Copy Markdown
Contributor

Description

  • Add db-init-prod to docker-build-prod.sh build targets to fix "wait-for-postgres.sh: not found" error
  • Reduce memory limit from 20g to 10g to support builds on 16GB RAM systems
  • Make generate-version.js resilient to Docker build environments by wrapping file writes in try/catch blocks
  • This ensures db-init-prod service has access to wait-for-postgres.sh script during startup

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement

How Has This Been Tested?

Describe the tests you ran to verify your changes:

  • Unit tests
  • Integration tests
  • E2E tests
  • Manual testing

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published
  • I have signed the CLA

- Add db-init-prod to docker-build-prod.sh build targets to fix "wait-for-postgres.sh: not found" error
- Reduce memory limit from 20g to 10g to support builds on 16GB RAM systems
- Make generate-version.js resilient to Docker build environments by wrapping file writes in try/catch blocks
- This ensures db-init-prod service has access to wait-for-postgres.sh script during startup
@therealbrad therealbrad merged commit 558c735 into main Jan 17, 2026
4 checks passed
@therealbrad therealbrad deleted the fix/docker-build-db-init branch January 17, 2026 05:03
@therealbrad
Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 0.10.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

therealbrad pushed a commit that referenced this pull request Jan 17, 2026
## [0.10.4](v0.10.3...v0.10.4) (2026-01-17)

### Bug Fixes

* ensure db-init-prod service builds correctly in Docker production ([#48](#48)) ([558c735](558c735))
@therealbrad
Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant