2024-03-31 11:48:30 +05:30

123 lines
8.4 KiB
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Google SRE Book/s
Generates a EPUB/MOBI/PDF for the Google SRE Books. Original sources are downloaded from
Visit the [Releases]( page to download the latest release. Go through all the releases, and click "Assets" to view a list of files.
# Books
| Site Reliability Engineering (2016) | The Site Reliability Workbook (2018) |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a href=""><img src="cover/sre-book.jpg" width="320" alt="site reliability engineering cover" /></a><br> <a href="">BUY</a> | <a href=""><img src="cover/workbook.jpg" width="320" alt="the site reliability workbook cover" /></a><br> <a href="">BUY</a>|
A few other SRE books/reports are available as directly from Google or publishers. A few links point to Internet Archive. Links marked in 🔻 are currently down.
- [Building Secure & Reliable Systems]( - [[PDF](] [[EPUB](] [[MOBI](] [[Google Books](] [[Amazon](] [[Kobo](]
- [Training Site Reliability Engineers]( - [[PDF](] [[EPUB](]
- [SLO Adoption and Usage in SRE]( - [[PDF](]
- [Practical Guide to Cloud Migration]( - [[PDF](] [[EPUB](]
- [Creating a Production Launch Plan]( - [[PDF](] [[EPUB](] [[MOBI](]
- [Case Studies in Infrastructure Change Management]( - [[PDF](]
- [A Case Study in Community-Driven Software Adoption]( - [[PDF](] [[EPUB](] [[MOBI](]
- [Incident Metrics in SRE]( - [[PDF](] [[EPUB](]
- [Engineering Reliable Mobile Applications]( - [[PDF](] [[EPUB](] [[MOBI 🔻](]
You might also like:
- [Software Engineering at Google]( [[PDF](] [[PDF-Archive](] [[Read Online](] [[OReilly](] [[Amazon](] [[](] [Generated EPUB/PDF](
# Build
## Docker (Preferred)
- Docker
You can generate either of books using `BOOK_SLUG` variable.
Available values for _`BOOK_SLUG`_:
- `sre_book` Site Reliability Engineering.
- `srw_book` The Site Reliability Workbook.
$ docker run --rm --volume "$(pwd):/output" -e BOOK_SLUG='srw_book' captn3m0/google-sre-ebook:latest
- You should see the final EPUB/MOBI/PDF files in the current 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" -e BOOK_SLUG='srw_book'
Builds on [Docker Hub]( are no longer maintained.
## macOS / Linux
- Make
- Ruby
- `gem install bundler`
- `bundle install`
- `brew install pandoc`
- `brew cask install calibre`
- `brew install wget`
Run either of the following:
# To download Site Reliability Engineering.
BOOK_SLUG='sre_book' ./
# To download The Site Reliability Workbook.
BOOK_SLUG='srw_book' ./
### PDF options
Any option can be passed to `pandoc` by `PDF_OPT_` prefix, for example:
PDF_OPT_GEOMETRY=margin=1.5cm \
PDF_OPT_MAINFONT=LiberationSerif-Regular.ttf \
PDF_OPT_MAINFONTOPTIONS=BoldFont=LiberationSerif-Bold.ttf,ItalicFont=LiberationSerif-Italic.ttf,BoldItalicFont=LiberationSerif-BoldItalic.ttf \
PDF_OPT_MONOFONT=LiberationMono-Regular.ttf \
PDF_OPT_MONOFONTOPTIONS=BoldFont=LiberationMono-Bold.ttf,ItalicFont=LiberationMono-Italic.ttf,BoldItalicFont=LiberationMono-BoldItalic.ttf \
PDF_OPT_SANSFONT=LiberationSans-Regular.ttf \
PDF_OPT_SANSFONTOPTIONS=BoldFont=LiberationSans-Bold.ttf,ItalicFont=LiberationSans-Italic.ttf,BoldItalicFont=LiberationSans-BoldItalic.ttf \
BOOK_SLUG=sre_book ./
Default options passed to `pandoc` in `` are overloaded by `PDF_OPT_` prefix, see `PDF_OPT_GEOMETRY` in above example.
Fonts in above axample are packed to `fonts-liberation2` on **Ubuntu**.
See more details:
* <>
* <>
* <>
# Known Issues
- metadata is not complete. There are just too many authors
- Foreword/Preface is not part of the index
- The typesetting is not great and does not match the original. See #22 for a list
This is licensed under WTFPL. See COPYING file for the full text.
## Extra
I have a list of my E-book publishing related projects at Links to other related books can be found at