add container for calibre-server
This commit is contained in:
3
build/make/calibre.mk
Normal file
3
build/make/calibre.mk
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
calibre: base
|
||||||
|
$(call script,$@)
|
||||||
|
$(call runit,$@)
|
||||||
3
build/runit/calibre
Normal file
3
build/runit/calibre
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
/usr/bin/calibre-server --with-library=$CALIBRE_LIBRARY > $CALIBRE_LOG
|
||||||
10
build/scripts/calibre.sh
Normal file
10
build/scripts/calibre.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
## Configuration
|
||||||
|
export_env CALIBRE_LIBRARY /host/calibre/library
|
||||||
|
export_env CALIBRE_LOG /host/calibre.log
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
apt_install_permanent python-qt4 xz-utils xdg-utils imagemagick
|
||||||
|
|
||||||
|
## Calibre
|
||||||
|
cd /opt
|
||||||
|
PYTHONIOENCODING="utf-8" wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
|
||||||
Reference in New Issue
Block a user