1
0
mirror of https://github.com/ciromattia/kcc synced 2026-02-12 23:33:18 +00:00

Update /app to /opt/kcc and --entrypoint kcc-c2p.py to -e KCC_MODE=c2p in Docker documentation

José Cerezo
2025-11-11 22:59:21 -05:00
parent 778b137387
commit 913ba17d52

@@ -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.