RSS-Bridge / rss-bridge

The RSS feed for websites missing it
https://rss-bridge.org/bridge01/
The Unlicense
7k stars 1.02k forks source link

docker: curl-impersonate library included in arm images is compiled for the wrong architecture (amd64/x86-64) #3983

Closed xduugu closed 4 months ago

xduugu commented 4 months ago

Describe the bug The curl-impersonate library that is included in the arm images was compiled for x86_64. This can easily be noticed by the error that is printed if one starts a bash inside the rss-bridge container:

ERROR: ld.so: object '/usr/local/lib/curl-impersonate/libcurl-impersonate-ff.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

This is caused by the fact that the docker image, from which the library is copied, is only available for amd64 (see [1] [2]).

To Reproduce Run the following command to see the difference between the container architecture and the architecture that the curl-impersonate library was compiled for.

$ docker run --arch=aarch64 --rm -it --entrypoint=sh docker.io/rssbridge/rss-bridge:latest -c '(apt-get update && apt-get install --yes file) > /dev/null 2>&1 && arch && file /usr/local/lib/curl-impersonate/libcurl-impersonate-ff.so'
ERROR: ld.so: object '/usr/local/lib/curl-impersonate/libcurl-impersonate-ff.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/local/lib/curl-impersonate/libcurl-impersonate-ff.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
aarch64
ERROR: ld.so: object '/usr/local/lib/curl-impersonate/libcurl-impersonate-ff.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/usr/local/lib/curl-impersonate/libcurl-impersonate-ff.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=46ec59f51f37b3090abfc0ac139f9b3b8b38c039, with debug_info, not stripped
dvikan commented 4 months ago

@Alkarex @wrobelda

https://github.com/RSS-Bridge/rss-bridge/pull/3984/files

wrobelda commented 4 months ago

Bit late to the game, but LGTM!