[docker] Retry fonts download (#134933) (#135733)

We recently had a build failure due to a temporary network failure.
Most of the asset downloads in our Dockerfile already have retries, this
adds similar to the reporting font download.

(cherry picked from commit a9b26eebda)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This commit is contained in:
Kibana Machine 2022-07-05 13:11:03 -04:00 committed by GitHub
parent 05341030a6
commit 8863cb08e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ RUN set -e ; \
chmod +x /bin/tini
RUN mkdir /usr/share/fonts/local
RUN curl -L -o /usr/share/fonts/local/NotoSansCJK-Regular.ttc https://github.com/googlefonts/noto-cjk/raw/NotoSansV2.001/NotoSansCJK-Regular.ttc
RUN curl --retry 8 -S -L -o /usr/share/fonts/local/NotoSansCJK-Regular.ttc https://github.com/googlefonts/noto-cjk/raw/NotoSansV2.001/NotoSansCJK-Regular.ttc
RUN echo "5dcd1c336cc9344cb77c03a0cd8982ca8a7dc97d620fd6c9c434e02dcb1ceeb3 /usr/share/fonts/local/NotoSansCJK-Regular.ttc" | sha256sum -c -
RUN fc-cache -v