Run epubcheck on docker
$ docker pull gnue/epubcheck
$ docker run -t -i --rm -v "$(pwd):/app/data" gnue/epubcheck [OPTIONS] [file...]
- file is EPUB file only
- OPTIONS
- show help
docker run -t -i --rm gnue/epubcheck -h
- can use variables
$file
is file path$fname
is file name without file exstention
- show help
$ docker-compose up
or
$ docker-compose run --rm epubcheck [OPTIONS] [file...]
Directory structure:
.
├── docker-compose.yml # docker-compose configuration file
├── data # EPUB files
│ ├── book_01.epub
│ ├── book_02.epub
│ └── ...
└── log # Output log files
└── ...
docker-compose.yml:
epubcheck:
environment:
EPUBCHECK_FLAGS: "--json log/$$fname.json"
image: gnue/epubcheck
volumes:
- "./data:/app/data:ro"
- "./log:/app/log"