diff --git a/deployments/eecs/image/apt.txt b/deployments/eecs/image/apt.txt index 56c697992..6c3d13462 100644 --- a/deployments/eecs/image/apt.txt +++ b/deployments/eecs/image/apt.txt @@ -38,3 +38,7 @@ texlive-lang-chinese # For jupyter-tree-download. Ref: https://github.com/berkeley-dsep-infra/datahub/issues/3979 zip + +# playwright deps https://jira-secure.berkeley.edu/browse/DH-325 +libnss3 +libnspr4 diff --git a/deployments/eecs/image/environment.yml b/deployments/eecs/image/environment.yml index c481bdd5a..bfb1fb8d0 100644 --- a/deployments/eecs/image/environment.yml +++ b/deployments/eecs/image/environment.yml @@ -64,6 +64,8 @@ dependencies: - PyQt5==5.15.4 # From https://github.com/berkeley-dsep-infra/datahub/issues/1363#issuecomment-598916469 - lcapy==0.96 +# make webpdf export work DH-326 + - nbconvert[webpdf]==7.16.4 # For desktop environment - jupyter-desktop-server==0.1.3 - -r infra-requirements.txt diff --git a/deployments/eecs/image/postBuild b/deployments/eecs/image/postBuild index 7c3e8550c..b1b290345 100644 --- a/deployments/eecs/image/postBuild +++ b/deployments/eecs/image/postBuild @@ -1,6 +1,10 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail # 2024-01-13 sknapp: incompatible due to notebook 7 # jupyter contrib nbextensions install --sys-prefix --symlink # jupyter nbextensions_configurator enable --sys-prefix + +# installing chromium browser to enable webpdf conversion using nbconvert +export PLAYWRIGHT_BROWSERS_PATH=${CONDA_DIR} +playwright install chromium diff --git a/deployments/eecs/image/start b/deployments/eecs/image/start new file mode 100644 index 000000000..c3a978b7f --- /dev/null +++ b/deployments/eecs/image/start @@ -0,0 +1,5 @@ +#!/bin/bash + +# See https://jira-secure.berkeley.edu/browse/DH-305 +export PLAYWRIGHT_BROWSERS_PATH=${CONDA_DIR} +exec "$@"