docker: Get bundle install working again
This commit is contained in:
parent
6d227c3153
commit
6a976df69f
|
@ -5,8 +5,6 @@ LABEL maintainer="github.google-sre-ebook@captnemo.in"
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND="noninteractive"
|
ARG DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
COPY . /src/
|
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
@ -18,10 +16,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
wget \
|
wget \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
&& gem install bundler --no-ri --no-rdoc \
|
&& gem install bundler --no-ri --no-rdoc \
|
||||||
&& bundle install \
|
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY . /src/
|
||||||
|
|
||||||
|
RUN bundle install
|
||||||
|
|
||||||
ENTRYPOINT ["/src/bootstrap.sh", "docker"]
|
ENTRYPOINT ["/src/bootstrap.sh", "docker"]
|
||||||
|
|
||||||
VOLUME ["/output"]
|
VOLUME ["/output"]
|
||||||
|
|
23
README.md
23
README.md
|
@ -12,14 +12,14 @@ Original sources are downloaded from https://landing.google.com/sre/
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
|
|
||||||
- Docker
|
- Docker
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker run --rm --volume "$(pwd):/output" captn3m0/google-sre-ebook:latest
|
$ 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.
|
- 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.
|
- 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:
|
**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:
|
||||||
|
|
||||||
|
@ -37,18 +37,17 @@ Review and run the `bootstrap.sh` script to generate the EPUB, MOBI, and PDF fil
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
|
|
||||||
- Ruby
|
- Ruby
|
||||||
- `gem install bundler`
|
- `gem install bundler`
|
||||||
- `gem install nokogiri`
|
- `gem install nokogiri`
|
||||||
- `brew install pandoc`
|
- `brew install pandoc`
|
||||||
- `brew cask install calibre`
|
- `brew cask install calibre`
|
||||||
- `brew install wget`
|
- `brew install wget`
|
||||||
|
|
||||||
# Known Issues
|
# Known Issues
|
||||||
|
|
||||||
- Inline references are not handled in the best possible way
|
- metadata.xml is not complete. There are just too many authors
|
||||||
- metadata.xml is not complete. There are just too many authors
|
- Foreword/Preface is not part of the index
|
||||||
- Foreword/Preface is not part of the index
|
|
||||||
|
|
||||||
# LICENSE
|
# LICENSE
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,10 @@ fi
|
||||||
ruby generate.rb
|
ruby generate.rb
|
||||||
|
|
||||||
pushd html/landing.google.com/sre/sre-book/toc
|
pushd html/landing.google.com/sre/sre-book/toc
|
||||||
pandoc -f html -t epub -o ../../../../../google-sre.epub --epub-metadata=../../../../../metadata.xml --epub-cover-image=../../../../../cover.jpg complete.html
|
pandoc --from=html --to=epub --output=../../../../../google-sre.epub \
|
||||||
|
--epub-metadata=../../../../../metadata.xml \
|
||||||
|
--epub-cover-image=../../../../../cover.jpg \
|
||||||
|
complete.html
|
||||||
popd
|
popd
|
||||||
ebook-convert google-sre.epub google-sre.mobi
|
ebook-convert google-sre.epub google-sre.mobi
|
||||||
ebook-convert google-sre.epub google-sre.pdf
|
ebook-convert google-sre.epub google-sre.pdf
|
||||||
|
|
Loading…
Reference in New Issue