add container for calibre-server

This commit is contained in:
2016-08-08 18:12:08 +01:00
parent e9cd5db45d
commit d5a5b6a0b3
3 changed files with 16 additions and 0 deletions

10
build/scripts/calibre.sh Normal file
View 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()"