yurijmikhalevich / rclip

AI-Powered Command-Line Photo Search Tool
MIT License
723 stars 54 forks source link

bug: can't run rclip inside an alpine docker image #133

Open Fethbita opened 1 month ago

Fethbita commented 1 month ago

I am trying to run rclip inside docker-webtop (with Alpine) however when trying to execute the AppImage, I get the following error:

$ rclip
dlopen(): error loading libfuse.so.2

AppImages require FUSE to run. 
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information

And after installing the fuse package I get the following:

$ rclip
fuse: device not found, try 'modprobe fuse' first

Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information
open dir error: No such file or directory

If I try to run rclip --appimage-extract as recommended in the error, I get the following:

$ rclip --appimage-extract
This doesn't look like a squashfs image.
Failed to open squashfs image
Fethbita commented 1 month ago

Currently fixed by using docker-webtop ubuntu-xfce tag and extracting the AppImage and symbolic linking the AppRun file.

wget https://github.com/yurijmikhalevich/rclip/releases/download/v1.10.2/rclip-1.10.2-amd64.AppImage
./rclip-1.10.2-amd64.AppImage --appimage-extract
ln -s /config/squashfs-root/AppRun /config/.local/bin/rclip
yurijmikhalevich commented 1 month ago

@Fethbita, this looks like the issue with Alpine. Thank you for letting me know that it doesn't work with the alpine docker image.