zonkyio / embedded-postgres-binaries

Lightweight bundles of PostgreSQL binaries with reduced size intended for testing purposes.
Apache License 2.0
138 stars 29 forks source link

building an embedded binary with postgis - for Mac #6

Open gushpanka opened 5 years ago

gushpanka commented 5 years ago

Hi,

Wanted to ask whether you are planning to release binaries of embedded postgres with postgis extension? (following this PR)

I have tried to build it manually following the instructions on the project's README, however encountered an error I couldn't resolve. Only then I noticed you mention on the README that "this option is not (yet) available for Windows and Mac OS platforms" - which probably explained why my manual build failed on my mac.

I really want to use your great embedded postgres library for my projects JUnit tests, however my projects rely heavily on postgis, and without having a proper binary I won't be able to utilize it :(

Can you assist/guide me how to solve it?

Thanks in advance!

tomix26 commented 5 years ago

Hi, yes, I do plan it.

But this project is only a supporting project for the primary io.zonky.test:embedded-database-spring-test and there is a lot of other tasks with a higher priority. So it may take a long time to begin implementing this task. But If you want to contribute, help is welcome.

If you don't mind using Docker, you can also consider using Testcontainers as an alternative.

ehsanonline commented 3 years ago

Please consider supporting Graph extension too.

tomix26 commented 3 years ago

@ehsanonline It is not possible to include all extensions to this project. So if this task is implemented, it will probably be included only support for postgis extension.

flozano commented 3 years ago

are there any existing published builds with postgis already ?

tomix26 commented 3 years ago

are there any existing published builds with postgis already ?

No, they aren't, you have to build them yourself.

ebondu commented 5 months ago

I bundled an embedded binary with postgis by modifying the project's scripts but I am not sure the approach is valid. As I didn't found a clean way to download the postgis files (binaries / sql) of a given version, I added these files manually to the project by copying the ones installed locally by the "stackbuilder" from entreprisedb. Files added to the project are quite huge (around 100Mo), so I guess this is not the best way to do the repack. Do you know a better approach to get postgis binary files for a given version ?