Docs: grafana image renderer instructions custom cert in container (#93646)

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
This commit is contained in:
Roman Pertl 2024-09-27 14:00:57 +02:00 committed by GitHub
parent 51d73249b2
commit 3437c8be7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,6 +125,22 @@ If this happens, then you have to add the certificate to the trust store. If you
certutil addstore "Root" <path>/internal-root-ca.crt.pem
```
**Container:**
```Dockerfile
FROM grafana/grafana-image-renderer:latest
USER root
RUN apk add --no-cache nss-tools
USER grafana
COPY internal-root-ca.crt.pem /etc/pki/tls/certs/internal-root-ca.crt.pem
RUN mkdir -p /home/grafana/.pki/nssdb
RUN certutil -d sql:/home/grafana/.pki/nssdb -A -n internal-root-ca -t C -i /etc/pki/tls/certs/internal-root-ca.crt.pem
```
## Custom Chrome/Chromium
As a last resort, if you already have [Chrome](https://www.google.com/chrome/) or [Chromium](https://www.chromium.org/)