From 9fd1fa3208267eeb4fdba75f0e1774880944ad23 Mon Sep 17 00:00:00 2001 From: Jonathan Felder Date: Tue, 16 Jul 2024 13:26:23 -0700 Subject: [PATCH] [DH-327] make webpdf work for ischool --- deployments/ischool/image/Dockerfile | 5 +++++ deployments/ischool/image/environment.yml | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/deployments/ischool/image/Dockerfile b/deployments/ischool/image/Dockerfile index 0cee86939..2b3e4c1ad 100644 --- a/deployments/ischool/image/Dockerfile +++ b/deployments/ischool/image/Dockerfile @@ -34,6 +34,7 @@ RUN apt-get update > /dev/null && \ libatk-bridge2.0-0 \ libgtk-3-0 \ libnss3 \ + libnspr4 \ libxss1 \ nodejs \ npm \ @@ -57,6 +58,10 @@ COPY infra-requirements.txt /tmp/infra-requirements.txt RUN mamba env update -p ${CONDA_DIR} -f /tmp/environment.yml && \ mamba clean -afy +# DH-327, very similar to what was done for datahub in DH-164 +ENV PLAYWRIGHT_BROWSERS_PATH ${CONDA_DIR} +RUN playwright install chromium + # Install IRKernel RUN R --quiet -e "install.packages('IRkernel', quiet = TRUE)" && \ R --quiet -e "IRkernel::installspec(prefix='${CONDA_DIR}')" diff --git a/deployments/ischool/image/environment.yml b/deployments/ischool/image/environment.yml index 877fbc307..28fd179df 100644 --- a/deployments/ischool/image/environment.yml +++ b/deployments/ischool/image/environment.yml @@ -16,7 +16,8 @@ dependencies: - pip: - -r /tmp/infra-requirements.txt - otter-grader==3.1.4 + # DH-327 + - nbconvert[webpdf]==7.16.4 # for notebook exporting - - nbconvert==7.6.0 - nb2pdf==0.6.2 - nbpdfexport==0.2.1