mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-02 14:32:42 +02:00
* feat(calibre-web): document the optional features and drop the dead calibre install Issue #1143 asks how to add Calibre-Web's optional extras (metadata, kobo, ...) to the add-on. They are already there: the LinuxServer base image pip installs optional-requirements.txt alongside requirements.txt into its /lsiopy virtualenv, so every extra ships enabled. Listing the .dist-info directories of the published image confirms scholarly, rarfile, py7zr, mutagen, jsonschema, python-ldap, flask-dance, PyDrive2, comicapi and the rest are present. Running pip install calibreweb[...] in the container just fetches an unused second copy from PyPI and is thrown away when the Supervisor recreates the container. What actually hides the reporter's cover fields is Calibre-Web's own gating: book_edit.html only renders 'Fetch Cover from URL' and 'Upload Cover from Local Disk' when current_user.role_upload() and g.allow_upload are both true, i.e. Enable Uploads plus the user's Upload permission. The README now says so. While checking where the Calibre binaries come from, the Dockerfile step that claimed to install them turned out to be dead. The image has no wget, only curl, so 'wget ... | sh /dev/stdin install_dir=/opt/calibre' loses wget to exit 127, hands sh an empty script, and the pipeline still exits 0. In the published amd64 image that RUN's layer decompresses to an empty tar and no layer contains anything under /opt/calibre. Repairing it with curl would not help: calibre's installer then hard-exits on the missing libEGL, libOpenGL and libxcb-cursor that the universal-calibre mod apt-installs itself, so the build would start failing and the image would grow by about a gigabyte for binaries the mod already provides at start. The step is removed and a comment records where the binaries really come from. Refs https://github.com/alexbelgium/hassio-addons/issues/1143 * docs(calibre-web): tighten the optional-features wording after review Say pip install calibreweb[...] is unsupported and can disturb the pinned dependencies rather than calling the result unused, scope the extra-package advice to compatible packages, list the calibre binaries as examples rather than as a set all three operations need, and mark the docker mod as the default rather than a certainty since DOCKER_MODS can be overridden.
121 lines
2.1 KiB
YAML
121 lines
2.1 KiB
YAML
arch:
|
|
- aarch64
|
|
- amd64
|
|
description: Browsing, reading and downloading eBooks using an existing Calibre database
|
|
devices:
|
|
- /dev/dri
|
|
- /dev/dri/card0
|
|
- /dev/dri/card1
|
|
- /dev/dri/renderD128
|
|
- /dev/vchiq
|
|
- /dev/video10
|
|
- /dev/video11
|
|
- /dev/video12
|
|
- /dev/video13
|
|
- /dev/video14
|
|
- /dev/video15
|
|
- /dev/video16
|
|
- /dev/ttyUSB0
|
|
- /dev/sda
|
|
- /dev/sdb
|
|
- /dev/sdc
|
|
- /dev/sdd
|
|
- /dev/sde
|
|
- /dev/sdf
|
|
- /dev/sdg
|
|
- /dev/nvme
|
|
- /dev/nvme0
|
|
- /dev/nvme0n1
|
|
- /dev/nvme0n1p1
|
|
- /dev/nvme0n1p2
|
|
- /dev/nvme0n1p3
|
|
- /dev/nvme1n1
|
|
- /dev/nvme1n1p1
|
|
- /dev/nvme1n1p2
|
|
- /dev/nvme1n1p3
|
|
- /dev/nvme2n1
|
|
- /dev/nvme2n1p1
|
|
- /dev/nvme2n1p2
|
|
- /dev/nvme2n3p3
|
|
- /dev/mmcblk
|
|
- /dev/fuse
|
|
- /dev/sda1
|
|
- /dev/sdb1
|
|
- /dev/sdc1
|
|
- /dev/sdd1
|
|
- /dev/sde1
|
|
- /dev/sdf1
|
|
- /dev/sdg1
|
|
- /dev/sda2
|
|
- /dev/sdb2
|
|
- /dev/sdc2
|
|
- /dev/sdd2
|
|
- /dev/sde2
|
|
- /dev/sdf2
|
|
- /dev/sdg2
|
|
- /dev/sda3
|
|
- /dev/sdb3
|
|
- /dev/sda4
|
|
- /dev/sdb4
|
|
- /dev/sda5
|
|
- /dev/sda6
|
|
- /dev/sda7
|
|
- /dev/sda8
|
|
- /dev/nvme0
|
|
- /dev/nvme1
|
|
- /dev/nvme2
|
|
environment:
|
|
DOCKER_MODS: linuxserver/mods:universal-calibre
|
|
FM_HOME: /config
|
|
HOME: /config
|
|
PGID: "0"
|
|
PUID: "0"
|
|
calibre-web_CONFIG_DIRECTORY: /config
|
|
shm_size: 1gb
|
|
hassio_api: true
|
|
image: ghcr.io/alexbelgium/calibre_web-{arch}
|
|
ingress: true
|
|
init: false
|
|
map:
|
|
- addon_config:rw
|
|
- all_addon_configs:rw
|
|
- homeassistant_config:rw
|
|
- media:rw
|
|
- share:rw
|
|
- ssl
|
|
name: Calibre-web
|
|
options:
|
|
env_vars: []
|
|
PGID: 0
|
|
PUID: 0
|
|
panel_admin: false
|
|
panel_icon: mdi:library
|
|
ports:
|
|
8083/tcp: 8084
|
|
ports_description:
|
|
8083/tcp: Calibre-web webui (Not required for Ingress)
|
|
privileged:
|
|
- SYS_ADMIN
|
|
- DAC_READ_SEARCH
|
|
- NET_ADMIN
|
|
schema:
|
|
env_vars:
|
|
- name: match(^[A-Za-z0-9_]+$)
|
|
value: str?
|
|
DOCKER_MODS: str?
|
|
OAUTHLIB_RELAX_TOKEN_SCOPE: str?
|
|
PGID: int
|
|
PUID: int
|
|
TZ: str?
|
|
cifsdomain: str?
|
|
cifspassword: str?
|
|
cifsusername: str?
|
|
ingress_user: str?
|
|
localdisks: str?
|
|
networkdisks: str?
|
|
slug: calibre-web
|
|
udev: true
|
|
url: https://github.com/alexbelgium/hassio-addons/tree/master/calibre_web
|
|
version: "0.6.27.3"
|
|
video: true
|