Open RealStickman opened 2 years ago
Since I'd already pretty much finalized a container image for Kavita on Alpine, I'll share it here.
It's modified to launch you into the interactive shell instead of starting Kavita for easier poking around.
Alpine doesn't use bash, so I modified entrypoint.sh to use /bin/sh
as shebang. No other changes were necessary.
https://gist.github.com/RealStickman/41beffac2e973378ce319ab9d15eeb4c
I put this as on-hold for myself, but opening it up to the community to help out here.
See @docnet/issues/7 - it's issue of docnet - they bundle pdfium library compiled not against musl..
So i see to ways to overcome this:
Yo, I'm from the future
Here's what I did to make this work
apk add vips
apk add gcompat
apk add libspng
Then deleted the libvips.so from the Kavita folder. Then replaced the pdfium.so from the Kavita folder with a musl build from https://github.com/bblanchon/pdfium-binaries. I renamed the libpdfium.so to pdfium.so and replaced the one in Kavita. Then force scan in Kavita
Seems to work. I can now read PDFs, and I get to see the cover image as well.
This means, a proper pdfium binary could be included in the Kavita musl build now I think, to save us the trouble
When running Kavita on Alpine Linux, PDF files can't be read, have a length of 0 and are without a cover.
To Reproduce Steps to reproduce the behavior:
Error message
Error messages when a library with a PDF file is scanned (first warning) and Kavita tries to generate a cover (second warning)
Expected behavior The PDF should be readable and have a cover
Screenshots Looks like this in the web interface
The file can't be opened, with an error that Kavita can't read the archive
![image](https://user-images.githubusercontent.com/61015582/188275914-31839707-66ee-4be7-9a5a-287d9c2eb5cd.png)
Desktop (please complete the following information):
Additional repositories were enabled to get all dependencies (pretty much copied from Ubuntu Dockerfile).
Here's the
/etc/apk/repositories
fileInstalling dependencies:
Additional context I did try the method of removing
libvips.so.42
as noted in this issue hereThe
vips
package was installed to provide the library instead. No change.Alpine uses musl libc instead of glibc.
The CPU I use to run alpine supports sse4_2 (marked with stars)
OS Release output