Closed m-mohr closed 10 months ago
@vincentsarago Similarly, it looks like you need to have postgresql (and maybe postgresql-contrib) installed locally to run, pypgstac pgready --dsn postgresql://username:password@0.0.0.0:5439/postgis
, right? It just feels a bit overkill to install this during the demo... Thoughts?
@m-mohr you need a postgres database to have pgstac Yes, I'm not sure I understand the question.
I've made this repo because I needed to be able to create STAC items for some open data, and I personally use PgSTAC as backend for my STAC API, but people can use whatever they want
also in the Readme it's using docker so you don't need to install PostgreSQL
@vincentsarago I can't confirm that, I also used pgstac. I tried the commands with a clean system. It has the database in Docker, yes, but it looks like to run pypgstac pgready --dsn postgresql://username:password@0.0.0.0:5439/postgis
you also need postgresql installed in the local host system or am I supposed to run the commands after docker-compose
through docker exec
in the container? I think I also tried that yesterday and then other dependencies were missing.
In any case, on a clean Ubuntu system the "Ingest in pgSTAC" section did fail for me during pypgstac pgready --dsn postgresql://username:password@0.0.0.0:5439/postgis
. I was able to complete after installing (and not starting) postgresql locally in the host system and the data was then later ingested into the database in the container.
@m-mohr this is because on your system 0.0.0.0
host might be the local postgres and not pointing to the own started by docker 🤷
just to be clear, this readme is just an example, you can ingest in the pgstac database you want.
I've updated the docker-compose because maybe it was missing the host forwarding
I had to install httpx and click before to run the linz examples