From f953234275236e2e2d26c5f3fb9ec0610b073ee6 Mon Sep 17 00:00:00 2001 From: Antoine Roy-Gobeil Date: Fri, 26 Feb 2021 17:23:51 -0500 Subject: [PATCH 1/2] Manually bundle in MathJax 2.7.5 in Docker image --- deployment/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deployment/Dockerfile b/deployment/Dockerfile index c18c72e..336d41b 100644 --- a/deployment/Dockerfile +++ b/deployment/Dockerfile @@ -80,10 +80,9 @@ RUN apt-get update -y && \ fc-cache -fv && apt-get --auto-remove -y remove subversion #################### -# Download mathjax (same version as plotly.js extras/) +# Download mathjax 2.7.5 -RUN curl -L https://github.com/plotly/plotly.js/archive/master.tar.gz \ - | tar -xvzf - --strip-components=3 plotly.js-master/dist/extras/mathjax +RUN cd / && npm install mathjax@2.7.5 && mv node_modules/mathjax / && rm -rf /node_modules #################### # Install and configure monit From 873b958271e919b371e89045bc790b48dd173f2d Mon Sep 17 00:00:00 2001 From: Antoine Roy-Gobeil Date: Tue, 9 Mar 2021 13:42:07 -0500 Subject: [PATCH 2/2] Add mock "webgl" to dash-preview --- test/dash-preview/mocks/webgl.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/dash-preview/mocks/webgl.json diff --git a/test/dash-preview/mocks/webgl.json b/test/dash-preview/mocks/webgl.json new file mode 100644 index 0000000..a1a22a9 --- /dev/null +++ b/test/dash-preview/mocks/webgl.json @@ -0,0 +1,8 @@ +{ + "url": "https://get.webgl.org/", + "timeout": "15", + "pdf_options": { + "pageSize": "Letter", + "marginsType": 1 + } +}