-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
PostGIS Extension? #52
Comments
If the export POSTGRES_IMAGE="postgres"
export POSTGRES_IMAGE_VERSION="9.4.4" |
I'm very interested about this issue because I'm block with postgis. I tried the other plugins but they aren't fully compatible with the new dokku version... how could I resolve this ? |
@pythdasch, I was able to get this working using the postgis Docker image @willcodeforfoo mentions above, just install the Docker image you want (here's what I have currently): mdillon/postgis latest f277f6afdf67 2 weeks ago 431.5 MB Then just change the two ENV vars mentioned in the docs to point to an installed PostGIS image and you should be good to use the plugin to create new database containers. |
Ok I'll try then, thx for the tips :) |
@sethdeckard Thanks! Dumb question, where should I set those ENV vars? |
Good question @willcodeforfoo. @sethdeckard what is the workflow to achieve what you did ? |
@willcodeforfoo, You can set them per session or permanently via /etc/environment. To elaborate /etc/environment would make them available to all users, I wasn't sure if the dokku user needs them as well, perhaps not. |
@pythdasch, Use the docker command to pull the image you want:
Then just set your env vars:
Then you just use the plugin to create a new database. |
Thx @sethdeckard I did all of this in my dokku (I'm with digitalocean) but I'm stuck after : |
Yes, you must create your database with the plugin (postgres:create), the ENV vars are used by it to know which postgres image to use when creating your container. |
DAMN it !!! I did it !!! Thanks a lot @sethdeckard :) |
You can't list a service that isn't created ;) |
Hi I'm having issue with this trick because of : Error parsing reference: "mdillon/postgis" :9.5.2" is not a valid repository/tag. |
I trried also latest but fails also :( |
it's ok I did it ! |
Because I just spent some time on this, I had to run:
and
to get this to work. |
FYI postgis has an official docker image you can use now: |
Is it possible to get the PostGIS extension working in a database?
I tried running
create extension postgis;
and got the following error:I suppose if you could somehow use the mdillon/postgis Docker image instead of the official Postgres one it'd work. Is it possible to somehow override
POSTGRES_IMAGE
in the config?The text was updated successfully, but these errors were encountered: