/docker-kindlegen

Amazon's KindleGen dockerized.

Primary LanguageDockerfile

KindleGen

Amazon's KindleGen dockerized.

Usage

You could run KindleGen in a container by executing the following docker command.

docker run -it --rm \
  --volume "$PWD:/home/kindlegen" \
  koenrh/kindlegen \
  /home/kindlegen/modern-vim.epub

You could make this command more easily accessible by putting it in an executable, and make sure that it is available in your $PATH. Alternatively, you could create wrapper functions for your docker run commands (example).

kindlegen() {
  docker run -it --rm \
    --volume "$PWD:/home/kindlegen" \
    --name kindlegen \
    koenrh/kindlegen "$@"
}