diff --git a/deployments/data101/image/apt.txt b/deployments/data101/image/apt.txt index b78191883..9b4955ded 100644 --- a/deployments/data101/image/apt.txt +++ b/deployments/data101/image/apt.txt @@ -94,3 +94,7 @@ zip # DH-93, DH94 postgresql-client + +# playwright deps https://jira-secure.berkeley.edu/browse/DH-305 +libnss3 +libnspr4 diff --git a/deployments/data101/image/environment.yml b/deployments/data101/image/environment.yml index 00c74a51c..313b9c50b 100644 --- a/deployments/data101/image/environment.yml +++ b/deployments/data101/image/environment.yml @@ -101,7 +101,7 @@ dependencies: # disable until fixed (probably this: https://github.com/jupyterlab/jupyter-collaboration/issues/162) # - jupyter_collaboration==1.0.1 - jupyterhub==4.1.5 - - nbconvert==7.6.0 + - nbconvert[webpdf]==7.16.4 - pytest-notebook==0.8.1 - pymongo==4.4.1 - dbt-postgres==1.6.0 diff --git a/deployments/data101/image/postBuild b/deployments/data101/image/postBuild index 6116a2436..8b16a7df1 100644 --- a/deployments/data101/image/postBuild +++ b/deployments/data101/image/postBuild @@ -13,3 +13,7 @@ chmod 775 ${CONDA_DIR}/bin/mongosh chmod 775 ${CONDA_DIR}/lib/mongosh_crypt_v1.so cd / rm -rf /tmp/mongosh + +# installing chromium browser to enable webpdf conversion using nbconvert +export PLAYWRIGHT_BROWSERS_PATH=${CONDA_DIR} +playwright install chromium diff --git a/deployments/data101/image/start b/deployments/data101/image/start new file mode 100644 index 000000000..c3a978b7f --- /dev/null +++ b/deployments/data101/image/start @@ -0,0 +1,5 @@ +#!/bin/bash + +# See https://jira-secure.berkeley.edu/browse/DH-305 +export PLAYWRIGHT_BROWSERS_PATH=${CONDA_DIR} +exec "$@"