From 913ba17d52163f1c61944d40716993d510e752a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Cerezo?= <104803561+joseenrique61@users.noreply.github.com> Date: Tue, 11 Nov 2025 22:59:21 -0500 Subject: [PATCH] Update /app to /opt/kcc and --entrypoint kcc-c2p.py to -e KCC_MODE=c2p in Docker documentation --- Installation.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Installation.md b/Installation.md index 5d502f1..c96cb76 100644 --- a/Installation.md +++ b/Installation.md @@ -164,25 +164,25 @@ $ docker pull ghcr.io/ciromattia/kcc:latest execute kcc-c2e ```bash -$ docker run --rm -v "$(pwd):/app" ghcr.io/ciromattia/kcc:latest +$ docker run --rm -v "$(pwd):/opt/kcc" ghcr.io/ciromattia/kcc:latest ``` example ```bash -$ docker run --rm -v "$(pwd):/app" ghcr.io/ciromattia/kcc:latest -p KPW5 ./1.cbz +$ docker run --rm -v "$(pwd):/opt/kcc" ghcr.io/ciromattia/kcc:latest -p KPW5 ./1.cbz ``` execute kcc-c2p ```bash -$ docker run --entrypoint /opt/kcc/kcc-c2p.py --rm -v "$(pwd):/app" ghcr.io/ciromattia/kcc:latest +$ docker run --rm -v "$(pwd):/opt/kcc" -e KCC_MODE=c2p ghcr.io/ciromattia/kcc:latest ``` Regarding local paths, the Docker container will only have access to the current folder and subfolders from where you're running it from. If you need to run this for relative paths, it gets trickier but is certainly doable. -Kindlegen **must be accessible to the Docker container in its /app folder**. You must also make your other path accessible in another folder. Here's one such example, if you want to convert `1.cbz` in your local `/path/to/sourcefiles` folder: +Kindlegen **must be accessible to the Docker container in its /opt/kcc folder**. You must also make your other path accessible in another folder. Here's one such example, if you want to convert `1.cbz` in your local `/path/to/sourcefiles` folder: ```bash -$ docker run --rm -v "/path/to/kindlegen:/app" -v "/path/to/sourcefiles:/app/files" ghcr.io/ciromattia/kcc:latest -p KPW5 files/1.cbz +$ docker run --rm -v "/path/to/kindlegen:/opt/kcc" -v "/path/to/sourcefiles:/opt/kcc/files" ghcr.io/ciromattia/kcc:latest -p KPW5 files/1.cbz ``` where `/path/to/kindlegen` is the folder where you have Kindlegen in, and `/path/to/sourcefiles` is the path to the source files you're trying to convert.