mirror of
https://github.com/captn3m0/google-sre-ebook.git
synced 2024-09-16 16:40:26 +00:00
2ff063e9b3
This change adds support for building the eBook with Docker. Supporting Docker means that users who want to build the eBook do not have to install Ruby/Bundler/Calibre in their environments. I'm a Docker n00b, so if there's a better way to handle file permissions on the output, I'm all ears. Build tested on Linux. Outputs were fine. There is also a change to the pandoc outputs. It seems the `+smart` extension is not supported for epub/html[0] in their latest versions. [0] - https://pandoc.org/MANUAL.html#extension-smart
8 lines
211 B
Bash
Executable File
8 lines
211 B
Bash
Executable File
#!/usr/bin/env bash
|
|
docker build -t google-sre-ebook .
|
|
docker run -i --rm -v "$(pwd):/output" google-sre-ebook sh -s <<EOF
|
|
./bootstrap.sh
|
|
chown -v $(id -u):$(id -g) /google-sre.*
|
|
mv -f /google-sre.* /output
|
|
EOF
|