Skip to content

Spoc 399: Improve base image and its creation#310

Merged
mason-sharp merged 6 commits intomainfrom
spoc-399
Jan 12, 2026
Merged

Spoc 399: Improve base image and its creation#310
mason-sharp merged 6 commits intomainfrom
spoc-399

Conversation

@danolivo
Copy link
Copy Markdown
Contributor

@danolivo danolivo commented Jan 9, 2026

No description provided.

danolivo and others added 4 commits January 9, 2026 10:44
Dockerfile improvements:
- Add build dependencies (git, zstd-devel, libxml2-devel)
- Fix Rocky Linux package compatibility (dnsutils → bind-utils)
- Add readline-devel for enhanced psql interactive experience
- Remove redundant packages (keep only -devel variants)
- Remove duplicate perl-IPC-Run installation (use system package)
- Fix cpanm cache cleanup to target correct directory
- Remove unnecessary ownership change operations
- Improve code consistency and documentation

The base image now provides complete PostgreSQL build dependencies for
all configure flags (zstd, lz4, ICU, libxml, libxslt, GSSAPI, LDAP,
PAM, LLVM, OpenSSL, systemd, Python).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Embed comprehensive build metadata for exact reproduction:
- Capture build timestamp, git commit, branch, and Rocky Linux version
- Store metadata in /etc/pgedge/build-info.txt (printed during build)
- Add OCI standard labels to image
- Tag images with both :latest and :commit-sha
- Print all metadata to workflow output

Documentation updated with build reproducibility section.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Enable native builds for both Intel/AMD and Apple Silicon systems:
- Add QEMU setup for cross-platform emulation
- Configure Docker Buildx for multiplatform builds
- Build and push linux/amd64 and linux/arm64 variants
- Create multiplatform manifest for automatic architecture selection
- Update documentation to reflect platform support

Docker automatically selects the correct architecture when pulling,
providing optimal native performance on Apple Silicon Macs.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@danolivo danolivo self-assigned this Jan 9, 2026
@danolivo danolivo added the enhancement New feature or request label Jan 9, 2026
@danolivo danolivo requested a review from mason-sharp January 9, 2026 13:39
@mason-sharp mason-sharp merged commit ad22c07 into main Jan 12, 2026
6 checks passed
@mason-sharp mason-sharp deleted the spoc-399 branch January 12, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants