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

Support for installing popular extensions #1

Open
manueltimita opened this issue Aug 6, 2015 · 2 comments
Open

Support for installing popular extensions #1

manueltimita opened this issue Aug 6, 2015 · 2 comments

Comments

@manueltimita
Copy link

This is one amazing package!

However, I also need to have PostGIS installed automatically.

I am more than happy to try a pull request. I am looking through pg-server-9.4-linux-x64 and trying to understand how a similar package could be created for an extension such as PostGIS (or if the package itself can be modified to add extensions from a config).

Perhaps you can suggest a way of doing this? Thanks!

@numtel
Copy link
Owner

numtel commented Aug 12, 2015

Sorry for the delay. I would be very excited to see this happen. I think the best way would be if this package were somehow modified to allow interoperating with extension packages, such as yourname:pg-server-postgis. I am not going to be any help on this until at least the beginning of next month though.

Due to the way Meteor places Npm modules in a shared directory, I foresee this as not being a simple task. Copying files into this shared directory would open the door to conflicts. I'm interested to see what you can come up with.

Ben

@manueltimita
Copy link
Author

No problem, Ben. Sorry, too, for the delay on my side.

What I ended up doing, was to:

  • take the Bitnami LAPP stack that comes with Postgres & PostGIS preinstalled. It works really well, because the Bitnami stacks are self-contained;
  • isolate all the files/libs needed and copy them to a NPM package, similar to what you do with pg-server-9.4-linux-x64;
  • add some specific logic to the NPM package so that PostGIS can work with all the libraries that it depends on (initially Bitnami sets some stuff differently).

It works well, but I do have one issue left, with one library (LIBJSON), which PostGIS doesn't seem to recognise no matter what I do. This is an important bug, because ST_GeomFromGeoJSON() crashes the server. From what I track on osgeo.org, it could be a build related bug, with PostGIS not accepting this library if it 'thinks' it hasn't been compiled against it.

This is the last hurdle that I need to solve, and then I want to put it on GitHub, potentially as a Meteor package too. If you like the end result, it could be moved to your account, so the effort is not duplicated.

But like in your case, I get very little time, so I'm not sure I can finish this very soon.

Manuel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants