Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide RPM packages for EL8 / EL9 #1116

Open
Vonng opened this issue May 9, 2024 · 6 comments
Open

Provide RPM packages for EL8 / EL9 #1116

Vonng opened this issue May 9, 2024 · 6 comments
Assignees
Labels
feature New feature or request github_actions Pull requests that update GitHub Actions code pg_lakehouse Issue related to `pg_lakehouse/` pg_search Issue related to `pg_search/` priority-2-medium Medium priority issue user-request This issue was directly requested by a user

Comments

@Vonng
Copy link

Vonng commented May 9, 2024

What
Provide pg_search & pg_analytics RPM packages for EL8, EL9

Why
EL8, EL9 is widely used, especially in enterprise scenarios

How
We already have building & packaing templates for pg_search and pg_analytics

Just add them to the project CI/CD pipeline and release rpm @ the release page

And it would be great to provide debian 11/12 packages too.

@philippemnoel
Copy link
Collaborator

What Provide pg_search & pg_analytics RPM packages for EL8, EL9

Why EL8, EL9 is widely used, especially in enterprise scenarios

How We already have building & packaing templates for pg_search and pg_analytics

Just add them to the project CI/CD pipeline and release rpm @ the release page

And it would be great to provide debian 11/12 packages too.

Does Pigsty build to RPM on the GitHub Actions runners?

@philippemnoel philippemnoel added feature New feature or request github_actions Pull requests that update GitHub Actions code priority-2-medium Medium priority issue pg_search Issue related to `pg_search/` pg_analytics pg_lakehouse Issue related to `pg_lakehouse/` user-request This issue was directly requested by a user and removed pg_analytics labels May 9, 2024
@Vonng
Copy link
Author

Vonng commented May 10, 2024

No, hand made. Bump extenions to the latest version when new version of Pigsty is about to release.

git clone --recursive https://github.com/paradedb/paradedb.git
cd ~/paradedb; git checkout v0.6.1;

export PATH=/usr/pgsql-16/bin:/root/.cargo/bin:/pg/bin:/usr/share/Modules/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/home/vagrant/.cargo/bin;
cd ~/paradedb/pg_search; HTTPS_PROXY=http://192.168.0.104:8118 cargo pgrx package; 
cd ~/paradedb/pg_analytics; HTTPS_PROXY=http://192.168.0.104:8118 cargo pgrx package; 

export PATH=/usr/pgsql-15/bin:/root/.cargo/bin:/pg/bin:/usr/share/Modules/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/home/vagrant/.cargo/bin;
cd ~/paradedb/pg_search; cargo pgrx package -vvv; 
cd ~/paradedb/pg_analytics; cargo pgrx package  -vvv;

rm -rf ~/rpmbuild/SOURCES/pg_search_16;      cp -r ~/paradedb/target/release/pg_search-pg16      ~/rpmbuild/SOURCES/pg_search_16;
rm -rf ~/rpmbuild/SOURCES/pg_analytics_16;   cp -r ~/paradedb/target/release/pg_analytics-pg16   ~/rpmbuild/SOURCES/pg_analytics_16;
rm -rf ~/rpmbuild/SOURCES/pg_search_15;      cp -r ~/paradedb/target/release/pg_search-pg15      ~/rpmbuild/SOURCES/pg_search_15;
rm -rf ~/rpmbuild/SOURCES/pg_analytics_15;   cp -r ~/paradedb/target/release/pg_analytics-pg15   ~/rpmbuild/SOURCES/pg_analytics_15;

cd ~/rpmbuild/SPECS;
make pg_search pg_analytics;

rpmbuild --without debuginfo --define "pgmajorversion 16" -ba ~/rpmbuild/SPECS/pg_search.spec
rpmbuild --without debuginfo --define "pgmajorversion 16" -ba ~/rpmbuild/SPECS/pg_analytics.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_search.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_analytics.spec

@philippemnoel
Copy link
Collaborator

No, hand made. Bump extenions to the latest version when new version of Pigsty is about to release.

git clone --recursive https://github.com/paradedb/paradedb.git
cd ~/paradedb; git checkout v0.6.1;

export PATH=/usr/pgsql-16/bin:/root/.cargo/bin:/pg/bin:/usr/share/Modules/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/home/vagrant/.cargo/bin;
cd ~/paradedb/pg_search; HTTPS_PROXY=http://192.168.0.104:8118 cargo pgrx package; 
cd ~/paradedb/pg_analytics; HTTPS_PROXY=http://192.168.0.104:8118 cargo pgrx package; 

export PATH=/usr/pgsql-15/bin:/root/.cargo/bin:/pg/bin:/usr/share/Modules/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/home/vagrant/.cargo/bin;
cd ~/paradedb/pg_search; cargo pgrx package -vvv; 
cd ~/paradedb/pg_analytics; cargo pgrx package  -vvv;

rm -rf ~/rpmbuild/SOURCES/pg_search_16;      cp -r ~/paradedb/target/release/pg_search-pg16      ~/rpmbuild/SOURCES/pg_search_16;
rm -rf ~/rpmbuild/SOURCES/pg_analytics_16;   cp -r ~/paradedb/target/release/pg_analytics-pg16   ~/rpmbuild/SOURCES/pg_analytics_16;
rm -rf ~/rpmbuild/SOURCES/pg_search_15;      cp -r ~/paradedb/target/release/pg_search-pg15      ~/rpmbuild/SOURCES/pg_search_15;
rm -rf ~/rpmbuild/SOURCES/pg_analytics_15;   cp -r ~/paradedb/target/release/pg_analytics-pg15   ~/rpmbuild/SOURCES/pg_analytics_15;

cd ~/rpmbuild/SPECS;
make pg_search pg_analytics;

rpmbuild --without debuginfo --define "pgmajorversion 16" -ba ~/rpmbuild/SPECS/pg_search.spec
rpmbuild --without debuginfo --define "pgmajorversion 16" -ba ~/rpmbuild/SPECS/pg_analytics.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_search.spec
rpmbuild --without debuginfo --define "pgmajorversion 15" -ba ~/rpmbuild/SPECS/pg_analytics.spec

Got it. Thanks for sharing. Assuming we can run rpmbuild on Ubuntu, I'm happy to pick this up and support these other platforms. I'll look into it next week

@philippemnoel philippemnoel self-assigned this May 22, 2024
@philippemnoel
Copy link
Collaborator

I've started taking a look at this as part of a PR to fix another user issue, will keep you posted

@philippemnoel
Copy link
Collaborator

We've just added Debian 11 and 12 packages with release v0.7.3: https://github.com/paradedb/paradedb/releases/tag/v0.7.3

We'll do some more testing for RPM packages, and then we'll add support for those as well soon!

@philippemnoel
Copy link
Collaborator

We've just added Debian 11 and 12 packages with release v0.7.3: https://github.com/paradedb/paradedb/releases/tag/v0.7.3

We'll do some more testing for RPM packages, and then we'll add support for those as well soon!

I have a basic setup for RHEL on https://github.com/paradedb/paradedb/tree/phil/rhel. Will slowly move this along alongside other priorities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request github_actions Pull requests that update GitHub Actions code pg_lakehouse Issue related to `pg_lakehouse/` pg_search Issue related to `pg_search/` priority-2-medium Medium priority issue user-request This issue was directly requested by a user
Projects
None yet
Development

No branches or pull requests

2 participants