-
Notifications
You must be signed in to change notification settings - Fork 77
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
Build ARM docker images #30
Comments
We can probably get around tembo-io/trunk#377 by installing pg_partman from source in the docker build instead of using |
It is messy but as an example, pgmq/.github/workflows/extension_ci.yml Lines 70 to 74 in 073d040
|
I can definitely make these changes, but I do like the idea of building on top of trunk. After all, gotta eat your own dog food. I would be fine with:
Or would you rather go with building from source + multi-arch on pgmq independent from trunk? |
No, just build from source as a temporary fix/until trunk install supports multi-arch. |
I am on it then. But how do I I am trying
I am looking into the code of I can delve into debugging it, but I am sure you are already familiar with building pgmq with trunk. |
We build pgmq with trunk in ci, pgmq/.github/workflows/extension_ci.yml Line 110 in d1ab63e
No extra flags, but there were some changes to the trunk cli and registry recently. Maybe check that you're on the latest version, >0.10, I believe. Thank you for digging into this! |
@viniciusd , hopefully we are able to support this via #160 |
@viniciusd, we ARM images for linux! |
Thanks for the updates! I am trying to get my schedule in order to get back to OSS/tinkering around |
While trying to install on a existing container postgres:16 I am doing the following and getting. @ChuckHend
I see above the PR 160 was only for linux arm so thats probably the cause. If we can get this working I don't mind doing a write up for it to help others. I think most people that would use pgmq would add it to a existing Postgres instance and not pull a new container but I could be wrong. Anyways love the PGMQ though it works super well on my linux machine! |
hey @joelawm, I'm glad you like the project! trunk only supports x86 at the moment which means if you want to install pgmq on an existing postgres instance thats not running on x86, you'll most likely need to build it from source. Can you give that a try and let me know how it goes? |
@ChuckHend oh of course yes I can! This is the documentation I was looking for haha |
@ChuckHend This is the following message for building from source it doesn't seem to actually install. Not sure if this is what I should see or not. I tried all 3 ways on the contributing page as well.
|
@joelawm , Can you run this SQL and let me know what it returns? If it shows up there, then you should be able to run |
@ChuckHend its returning nothing and installing in postgres:17.2 on docker so it should be the only postgres instance on there. The only thing is im running m2 mac so that probably the cause. I tried the manual building methods from source. Is this Arm compatible? |
I was trying to run
pgmq
on my MacBook, and I noticedpgmq
doesn't support ARM docker images.The current Docker manifest on quay.io is:
projectcalico/calico#4227 might be helpful here.
The image itself builds successfully on ARM:
But it fails to run. The error log on Docker is:
This is due to
pg_partman_bgw
not being installed. Its installation fails due to tembo-io/trunk#377, which blocks this issue.The text was updated successfully, but these errors were encountered: