https://github.com/shencangsheng/pgrx-docker
Build Postgres Extensions with Rust!
https://github.com/shencangsheng/pgrx-docker
docker pgrx postgres postgresql postgresql-extension rust rustlang
Last synced: about 2 months ago
JSON representation
Build Postgres Extensions with Rust!
- Host: GitHub
- URL: https://github.com/shencangsheng/pgrx-docker
- Owner: shencangsheng
- License: mit
- Created: 2024-12-13T09:07:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-06T07:09:17.000Z (over 1 year ago)
- Last Synced: 2025-02-22T18:23:30.571Z (over 1 year ago)
- Topics: docker, pgrx, postgres, postgresql, postgresql-extension, rust, rustlang
- Language: Dockerfile
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pgrx Docker
> Build Postgres Extensions with Rust!
[](https://hub.docker.com/r/shencangsheng/pgrx)
[](./LICENSE.md)
## 💡 Trying
```bash
docker run -v $(pwd):/usr/src/app shencangsheng/pgrx:13
ls target/release/{plugin_name}-{postgresql_version}/.pgrx/{psql_version}/pgrx-install
```
| Parameter | Description |
| -------------- | --------------------------------------------------------------------- |
| `PSQL_VERSION` | The version of PostgreSQL (optional: 12, 13, 14, 15, 16; default: 13) |
## 🚀 How to Build and Compile
```shell
docker build --build-arg PSQL_SUPPORT_VERSION=13 -t example/pgrx:13 .
```
| Parameter | Description |
| ---------------------- | ----------------------------------------------------------------------------------------------------------- |
| `RUST_TAG` | The version tag for Rust, defaulting to `1.83.0-bullseye` |
| `PSQL_SUPPORT_VERSION` | The supported version of PostgreSQL (optional: 12, 13, 14, 15, 16; if not specified, supports all versions) |
| `PGRX_VERSION` | The version of pgrx, defaulting to `0.11.4` |
| `CMD` | The command to execute, defaulting to `/usr/bin/pgrx-package` |
## 👍 Libraries Used
- [pgrx](https://github.com/pgcentralfoundation/pgrx)
## 📝 License
A short snippet describing the license (MIT)
MIT © Cangsheng Shen