Go to file
Nemo c08e0b6fde Switch to relative paths so it works without docker as well 2019-01-31 15:31:32 +05:30
.dockerignore Easier Docker workflow 2018-05-17 01:54:54 +05:30
.editorconfig Initial commit 2017-09-16 21:52:31 +05:30
.gitignore Fix Directory Structure Changes (#17) 2018-12-20 23:23:37 +05:30
COPYING Adds License 2017-09-16 23:22:58 +05:30
Dockerfile Merge changes from master 2019-01-31 15:23:27 +05:30
Gemfile Initial commit 2017-09-16 21:52:31 +05:30
Gemfile.lock [deps] bundle update (and upgrade to bundler 2.x) 2019-01-31 15:20:16 +05:30
README.md Switch to relative paths so it works without docker as well 2019-01-31 15:31:32 +05:30
bootstrap.sh Switch to relative paths so it works without docker as well 2019-01-31 15:31:32 +05:30
generate.rb tidy up and make it easy to change book name 2019-01-31 08:46:20 +01:00
sre-book.jpg Adds support for multiple covers/metadata files 2019-01-31 15:25:03 +05:30
sre-book.xml Adds support for multiple covers/metadata files 2019-01-31 15:25:03 +05:30

README.md

google-sre-ebook

Cover

Generates a EPUB/MOBI/PDF for the Google SRE Book.

Original sources are downloaded from https://landing.google.com/sre/

Build

Docker (Preferred)

Requirements:

  • Docker
$ docker run --rm --volume "$(pwd):/output" captn3m0/google-sre-ebook:latest
  • You should see the final EPUB/MOBI/PDF files in the output directory after the above runs.
  • The file may be owned by the root user.

NOTE: You'll have to allow docker access to a directory that's local to your system. The safest way to do this is as follows:

$ mkdir /tmp/sreoutput
$ chcon -Rt svirt_sandbox_file_t /tmp/sreoutput
$ docker run --rm --volume "/tmp/sreoutput:/output" captn3m0/google-sre-ebook:latest

The build for the above Docker image can be audited at https://cloud.docker.com/swarm/captn3m0/repository/docker/captn3m0/google-sre-ebook/builds.

macOS

Review and run the bootstrap.sh script to generate the EPUB, MOBI, and PDF files

Requirements:

  • Ruby
  • gem install bundler
  • bundle install
  • brew install pandoc
  • brew cask install calibre
  • brew install wget

Known Issues

  • metadata.xml is not complete. There are just too many authors
  • Foreword/Preface is not part of the index

LICENSE

This is licensed under WTFPL. See COPYING file for the full text.