STAC REST API / Browsing / Eodag docker-compose up
See original GitHub issueDescribe the bug Failed to build the stac browsing app by using docker-compose with respect to the tutorial
git clone https://github.com/CS-SI/eodag.git
cd eodag
docker-compose up
I got two issues.
One concerning the stac-browser.dockerfile which explain that node:lts-jessie-slim
is not found
A second one concerning the installation of shapely
during the construction of the stac-server.dockerfile
Code To Reproduce CLI commands or Python code snippet to reproduce the bug. Please use maximum verbosity using:
git clone https://github.com/CS-SI/eodag.git
cd eodag
docker-compose up
Output First bug :
=> ERROR [internal] load metadata for docker.io/library/node:lts-jessie- 1.7s
=> [auth] library/node:pull token for registry-1.docker.io 0.0s
=> [auth] library/nginx:pull token for registry-1.docker.io 0.0s
------
> [internal] load metadata for docker.io/library/node:lts-jessie-slim:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:d8dd20f9c00049c6f874683bc6c55cebddcadceca8f82b98975cc9f750bef5db: not found
ERROR: Service 'browser' failed to build
Solved by changing node:lts-jessie-slim
to node:lts-buster-slim
Second bug :
ERROR [10/14] RUN python setup.py install
#15 15.21 Best match: Shapely 1.8a1
#15 15.21 Processing Shapely-1.8a1.tar.gz
#15 15.22 Writing /tmp/easy_install-gqproqkm/Shapely-1.8a1/setup.cfg
#15 15.22 Running Shapely-1.8a1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-gqproqkm/Shapely-1.8a1/egg-dist-tmp-xias8_z0
#15 15.31 Failed `CDLL(libgeos_c.so.1)`
#15 15.31 Failed `CDLL(libgeos_c.so)`
#15 15.32 error: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so']
------
executor failed running [/bin/sh -c python setup.py install]: exit code: 1
ERROR: Service 'stac' failed to build
Solved by adding RUN apt-get install libgeos-c1v5 libgeos-3.7.1
before RUN python setup.py install
Additional context I do not know if it’s a relevant way to solved those issues but at least the server runs on my computer.
Ps : Thanks for all this work, EODAG is amazing !
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top GitHub Comments
Hi @sbrunato,
That’s fixed the issue 😃 !
Sorry for the late answer.
Have a nice week-end, Basile
Hello,
it’s not a issue about the image source since the lts-jessie-slim is still online: https://hub.docker.com/layers/node/library/node/lts-jessie-slim/images/sha256-72df7b77ceb0935005cbd54b85352538d9c86758acf01eedec40c9b7d45cbda6?context=explore switching to “lts-buster-slim” seems to resolve some warnings.
On the stac-server side, I’m not able to reproduce the errors…