embedded-postgres-binaries icon indicating copy to clipboard operation
embedded-postgres-binaries copied to clipboard

building an embedded binary with postgis - for Mac

Open gushpanka opened this issue 6 years ago • 6 comments

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!

gushpanka avatar Aug 08 '19 15:08 gushpanka

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.

tomix26 avatar Aug 16 '19 09:08 tomix26

Please consider supporting Graph extension too.

ehsanonline avatar Mar 06 '21 13:03 ehsanonline

@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.

tomix26 avatar Mar 26 '21 14:03 tomix26

are there any existing published builds with postgis already ?

flozano avatar Apr 01 '21 09:04 flozano

are there any existing published builds with postgis already ?

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

tomix26 avatar May 30 '21 22:05 tomix26

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 ?

ebondu avatar Mar 28 '24 11:03 ebondu