From 603a4ce2e403cd967a424aaeec22fa930443d269 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 18 Dec 2024 22:21:53 +1100 Subject: [PATCH] [8.16] includes liberation fonts in dockerfile (#204368) (#204697) # Backport This will backport the following commits from `main` to `8.16`: - [includes liberation fonts in dockerfile (#204368)](https://github.com/elastic/kibana/pull/204368) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) \r\n\r\nCo-authored-by: Elastic Machine ","sha":"87440cf335e59032c05c883d467d01a367aaa0cf","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major","ci:cloud-deploy","ci:build-serverless-image","ci:build-docker-fips","Feature:Reporting:Framework"],"title":"includes liberation fonts in dockerfile","number":204368,"url":"https://github.com/elastic/kibana/pull/204368","mergeCommit":{"message":"includes liberation fonts in dockerfile (#204368)\n\n## Summary\r\n\r\nThis PR includes liberations fonts in the docker file for Kibana. \r\n\r\ninformed by https://github.com/elastic/sdh-kibana/issues/5097, we\r\npreviously used to package liberation fonts within Dockerfile but this\r\nwas removed in https://github.com/elastic/kibana/pull/183334, it's\r\nhowever required for reporting on linux especially that these fonts\r\naren't provided by default, resulting in not so optimal rendering of\r\nusers reports.\r\n\r\n\r\n\r\nCo-authored-by: Elastic Machine ","sha":"87440cf335e59032c05c883d467d01a367aaa0cf"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204368","number":204368,"mergeCommit":{"message":"includes liberation fonts in dockerfile (#204368)\n\n## Summary\r\n\r\nThis PR includes liberations fonts in the docker file for Kibana. \r\n\r\ninformed by https://github.com/elastic/sdh-kibana/issues/5097, we\r\npreviously used to package liberation fonts within Dockerfile but this\r\nwas removed in https://github.com/elastic/kibana/pull/183334, it's\r\nhowever required for reporting on linux especially that these fonts\r\naren't provided by default, resulting in not so optimal rendering of\r\nusers reports.\r\n\r\n\r\n\r\nCo-authored-by: Elastic Machine ","sha":"87440cf335e59032c05c883d467d01a367aaa0cf"}}]}] BACKPORT--> Co-authored-by: Eyo O. Eyo <7893459+eokoneyo@users.noreply.github.com> --- .../os_packages/docker_generator/templates/base/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dev/build/tasks/os_packages/docker_generator/templates/base/Dockerfile b/src/dev/build/tasks/os_packages/docker_generator/templates/base/Dockerfile index 59c0765e7d3f2..3208000457f1d 100644 --- a/src/dev/build/tasks/os_packages/docker_generator/templates/base/Dockerfile +++ b/src/dev/build/tasks/os_packages/docker_generator/templates/base/Dockerfile @@ -114,7 +114,7 @@ EXPOSE 5601 RUN for iter in {1..10}; do \ microdnf update --setopt=tsflags=nodocs -y && \ microdnf install --setopt=tsflags=nodocs -y \ - fontconfig freetype shadow-utils nss findutils && \ + fontconfig liberation-fonts-common freetype shadow-utils nss findutils && \ microdnf clean all && exit_code=0 && break || exit_code=$? && echo "microdnf error: retry $iter in 10s" && \ sleep 10; \ done; \ @@ -126,7 +126,7 @@ RUN for iter in {1..10}; do \ apt-get update && \ apt-get upgrade -y && \ apt-get install -y --no-install-recommends \ - fontconfig libnss3 curl ca-certificates && \ + fontconfig fonts-liberation libnss3 curl ca-certificates && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && exit_code=0 && break || exit_code=$? && echo "apt-get error: retry $iter in 10s" && \ sleep 10; \ @@ -134,7 +134,7 @@ RUN for iter in {1..10}; do \ (exit $exit_code) {{/ubuntu}} {{#wolfi}} -RUN apk --no-cache add bash curl fontconfig libstdc++ libnss findutils shadow ca-certificates +RUN apk --no-cache add bash curl fontconfig font-liberation libstdc++ libnss findutils shadow ca-certificates {{/wolfi}} # Bring in Kibana from the initial stage.