sbs20 / scanservjs

SANE scanner nodejs web ui
https://sbs20.github.io/scanservjs/
GNU General Public License v2.0
686 stars 137 forks source link

feat: Automate HPLIP driver and plugin installation #726

Open FoxxMD opened 2 months ago

FoxxMD commented 2 months ago

Closes #701 #724

This abides by the "no additional backends in docker" intention because it does not install anything unless the user explicitly sets either HP_AIO or HP_PLUGIN envs.

The scripts also check for install status of the dependency and plugin so they will only run if not already installed.

Additionally, the script that installs the plugin, hplip.sh, is distribution agnostic so it can be used in any local install of scanservjs as long as the OS has the equivalent hpaio driver installed (which also installs hp-plugin).

A docker image is built with these changes at foxxmd/scanservjs:latest

ameer1234567890 commented 2 months ago

Could you build an image for arm64. My amd64 machine is currently broken (motherboard fried due to lightening).

FoxxMD commented 2 months ago

@ameer1234567890 i haven't tested the arm build but it is now published on foxxmd/scanservjs:latest

ameer1234567890 commented 2 months ago

Sorry, I was wrong. It should be arm, not arm64

FoxxMD commented 2 months ago

@ameer1234567890 ok, ive published arm/v7 (same as scanservjs) now.

ameer1234567890 commented 2 months ago

I tested it and my HP scanner is detected perfectly. However, unlike the original scanservjs docker image, my Canon scanner is not detected now.