Skip to content

Latest commit

 

History

History
78 lines (57 loc) · 1.22 KB

README.md

File metadata and controls

78 lines (57 loc) · 1.22 KB

Exporting works as HTML

Export works

  1. single work can be exported via web app

  2. all works in tag

    1. login and get session token from /auth/token
    2. run script
    python3 export_works.py --url <url_to_web_app>
    

Convert html ebook to another formats using Calibre

  1. for single file
ebook-convert ebook/index.html ebook.azw3
  1. for many files
python3 ebook_convert.py --path /path/to/ebooks/dir

Calibre Docker setup

run calibre in containerized environment

  1. Create core files:
  • Dockerfile
FROM ubuntu:jammy
  • docker-compose.yml
services:
  calibre:
    container_name: calibre-ubuntu
    build: .
    restart: "no"
    volumes:
      - <path_to_your_data_directory>:/home
  1. build docker image
docker compose build
  1. start + bash into container
docker compose run --name calibre calibre bash
  1. setup calibre
sudo apt update
sudo apt install calibre
Extra
  1. bash into already created container
docker container start -i <container name, example calibre_run_ba7c7673c2e6>
  1. disable network access for container
docker network disconnect calibre_default <container name, example calibre_run_ba7c7673c2e6>