2 feature implement multiple versions of postgres#3
Merged
Conversation
Add a Rust 'install-extensions' binary and use a multi-stage Dockerfile to build it and run it during the image build. The installer builds and installs pgvector, pgmq and PostGIS in parallel. Remove legacy files: GitHub Actions workflow, Makefile, README, docker-compose.yml, init.sql and ADDING_VERSIONS.md. Update .dockerignore, add .gitignore, and add Cargo.toml/Cargo.lock and new src/ modules for extension installation.
Remove get_latest_tag helper; add EXTENSION_VERSION constants for pgmq, pgvector and postgis and clone specific tags. Run blocking shell commands inside spawn_blocking for async tasks. Make postgis.install synchronous and invoke it directly before starting other installs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors the build and extension installation process for the PostgreSQL Docker image, moving extension installation logic from shell scripts in the Dockerfile to a Rust binary. It also updates the CI workflow to build and push images for multiple PostgreSQL versions, removes legacy files and documentation, and simplifies repository structure. The changes improve maintainability, parallelize extension installation, and support multi-architecture builds.
Build and Extension Installation Refactor
Dockerfilewith a Rust binary (install-extensions) that installspostgis,pgvector, andpgmqextensions in parallel, handles cleanup, and supports multiple PostgreSQL versions. (Dockerfile,Cargo.toml,src/main.rs,src/common.rs,src/extensions/mod.rs,src/extensions/postgis.rs,src/extensions/pgvector.rs,src/extensions/pgmq.rs) [1] [2] [3] [4] [5] [6] [7] [8]Continuous Integration and Multi-Version Support
docker-build.yml) to build and push images for a matrix of PostgreSQL versions and architectures, replacing the previous static workflow. (.github/workflows/docker-build.yml,.github/workflows/docker-image.yml) [1] [2]Repository Cleanup and Simplification
README.md,ADDING_VERSIONS.md), theMakefile,docker-compose.yml, and initialization scripts, reflecting the move to a programmatic and CI-driven build process. (README.md,ADDING_VERSIONS.md,Makefile,docker-compose.yml,init.sql) [1] [2] [3] [4] [5]Development Environment Adjustments
.dockerignoreto exclude additional editor and build directories for cleaner builds. (.dockerignore)