mirror of
https://github.com/captn3m0/google-sre-ebook.git
synced 2024-09-27 19:23:15 +00:00
69 lines
2.6 KiB
Markdown
69 lines
2.6 KiB
Markdown
# Google SRE Book/s
|
|
|
|
Generates a EPUB/MOBI/PDF for the Google SRE Book/s.
|
|
|
|
Original sources are downloaded from https://landing.google.com/sre/books
|
|
|
|
Visit the [Releases](https://github.com/captn3m0/google-sre-ebook/releases) page to download the latest release.
|
|
|
|
# Books
|
|
|
|
| Site Reliability Engineering (2016) | The Site Reliability Workbook (2018) |
|
|
| :-------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
| <a href="https://github.com/captn3m0/google-sre-ebook/releases"><img src="cover/sre-book.jpg" width="320" alt="site reliability engineering cover" /></a> | <a href="https://github.com/captn3m0/google-sre-ebook/releases"><img src="cover/workbook.jpg" width="320" alt="the site reliability workbook cover" /></a> |
|
|
|
|
# Build
|
|
|
|
## Docker (Preferred)
|
|
|
|
Requirements:
|
|
|
|
- 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' captn3m0/google-sre-ebook:latest
|
|
```
|
|
|
|
The build for the above Docker image can be audited at <https://hub.docker.com/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 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
|
|
|
|
# LICENSE
|
|
|
|
This is licensed under WTFPL. See COPYING file for the full text.
|