Marie59 / FE-ft-ESG

Repository for collaborative work between Fair-Ease and EuroScinceGateway projects
1 stars 1 forks source link

EODAG new galaxy tool #4

Open Marie59 opened 7 months ago

Marie59 commented 7 months ago

Hi @bgruening ! So, I am trying to get an interactive tool of Eodag. Here https://github.com/Marie59/FE-ft-ESG/tree/main/eodag/docker you have the newly created image to have eodag. To build, in the 1st eodag folder, it we use docker build -f docker/server-stac-browser.dockerfile -t eodag:final . Once built, to run it we use this command docker run --rm -it -p 5001:80 -p 5000:5000 -e EODAG_CORS_ALLOWED_ORIGINS=http://127.0.0.1:5001 eodag:final This is the xml I wrote https://github.com/Marie59/FE-ft-ESG/blob/main/eodag/interactivetool_eodag.xml with the 2 ports and the environment variable.

When I try the tool on my local galaxy config I get this error FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/eodag/resources/product_types.yml' which I don't have without the galaxy part.

I don't understand why it's going there I'll keep searching but if you have any clues I am all ears. Thank you !! (I am also using this issue to keep track of what I am doing)

bgruening commented 7 months ago

Can you do the following please:

docker run --rm -p 5001:80 -p 5000:5000 -e EODAG_CORS_ALLOWED_ORIGINS=http://127.0.0.1:5001 -i -t eodag:final bash
mkdir -p ./galaxy/outputs &&
chmod -R 777 ./ &&
cd ./galaxy/ &&
id &&
/init
bgruening commented 7 months ago

Also see https://github.com/Marie59/FE-ft-ESG/pull/5

Marie59 commented 7 months ago

Just tried with your command in the xml Same issue ...