mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Image Rendering: Remove PhantomJS support (#23460)
Removes all references and usage of PhantomJS #23375. Remove direct link rendered image e2e smoke test for now. Docker: Fix installing chrome in ubuntu custom docker image. Improve handling of image renderer not available/installed #23593. Add PhantomJS breaking change and upgrading notes. Use grabpl v0.2.10. Closes #13802 Co-authored-by: Kyle Brandt <kyle@grafana.com> Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
0a1ab60b8c
commit
6e313e7d37
@@ -41,19 +41,6 @@ RUN if [ `arch` = "x86_64" ]; then \
|
||||
rm -f /etc/ld.so.cache; \
|
||||
fi
|
||||
|
||||
# PhantomJS
|
||||
RUN if [ `arch` = "x86_64" ]; then \
|
||||
apk add --no-cache --virtual phantomjs-utils curl && \
|
||||
cd /tmp && \
|
||||
curl -Ls https://github.com/dustinblackman/phantomized/releases/download/2.1.1/dockerized-phantomjs.tar.gz | tar xz && \
|
||||
cp -R lib lib64 / && \
|
||||
cp -R usr/lib/x86_64-linux-gnu /usr/lib && \
|
||||
cp -R usr/share/fonts /usr/share && \
|
||||
cp -R etc/fonts /etc && \
|
||||
rm -rf /tmp/* && \
|
||||
apk del --no-cache phantomjs-utils; \
|
||||
fi
|
||||
|
||||
COPY --from=0 /tmp/grafana "$GF_PATHS_HOME"
|
||||
|
||||
RUN mkdir -p "$GF_PATHS_HOME/.aws" && \
|
||||
|
||||
@@ -17,15 +17,17 @@ RUN mkdir -p "$GF_PATHS_PLUGINS" && \
|
||||
RUN if [ $GF_INSTALL_IMAGE_RENDERER_PLUGIN = "true" ]; then \
|
||||
apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y chromium-browser && \
|
||||
apt-get install -y gdebi-core && \
|
||||
cd /tmp && \
|
||||
curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
|
||||
gdebi --n google-chrome-stable_current_amd64.deb && \
|
||||
apt-get autoremove -y && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
rm -rf /usr/share/grafana/tools/phantomjs; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
fi
|
||||
|
||||
USER grafana
|
||||
|
||||
ENV GF_RENDERER_PLUGIN_CHROME_BIN="/usr/bin/chromium-browser"
|
||||
ENV GF_RENDERER_PLUGIN_CHROME_BIN="/usr/bin/google-chrome"
|
||||
|
||||
RUN if [ $GF_INSTALL_IMAGE_RENDERER_PLUGIN = "true" ]; then \
|
||||
grafana-cli \
|
||||
|
||||
@@ -27,14 +27,9 @@ ENV PATH=/usr/share/grafana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bi
|
||||
WORKDIR $GF_PATHS_HOME
|
||||
|
||||
# Install dependencies
|
||||
# We need curl in the image, and if the architecture is x86-64, we need to install libfontconfig1 for PhantomJS
|
||||
RUN if [ `arch` = "x86_64" ]; then \
|
||||
apt-get update && apt-get upgrade -y && apt-get install -y ca-certificates libfontconfig1 curl && \
|
||||
apt-get autoremove -y && rm -rf /var/lib/apt/lists/*; \
|
||||
else \
|
||||
apt-get update && apt-get upgrade -y && apt-get install -y ca-certificates curl && \
|
||||
apt-get autoremove -y && rm -rf /var/lib/apt/lists/*; \
|
||||
fi
|
||||
# We need curl in the image
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y ca-certificates curl && \
|
||||
apt-get autoremove -y && rm -rf /var/lib/apt/lists/*;
|
||||
|
||||
COPY --from=grafana-builder /tmp/grafana "$GF_PATHS_HOME"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user