Skip to content

Commit

Permalink
[DH-328] make webpdf export work for data101
Browse files Browse the repository at this point in the history
  • Loading branch information
felder committed Jul 16, 2024
1 parent 81dac48 commit c264c8e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deployments/data101/image/apt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@ zip

# DH-93, DH94
postgresql-client

# playwright deps https://jira-secure.berkeley.edu/browse/DH-305
libnss3
libnspr4
2 changes: 1 addition & 1 deletion deployments/data101/image/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions deployments/data101/image/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions deployments/data101/image/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# See https://jira-secure.berkeley.edu/browse/DH-305
export PLAYWRIGHT_BROWSERS_PATH=${CONDA_DIR}
exec "$@"

0 comments on commit c264c8e

Please sign in to comment.