From 0f63d636c81ced1ee2ded5562173c3dca7d70233 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 2 Jan 2024 11:23:31 -0800 Subject: [PATCH 1/4] Install packages needed for quarto to knit to PDF Package list comes from the log provided by Nathan in https://2i2c.freshdesk.com/a/tickets/952, listing the packages needed by quarto PDF knitting. Ref https://github.com/2i2c-org/infrastructure/issues/2729 --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 675ca84..681451f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,13 @@ USER root COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache -r /tmp/requirements.txt +# Install packages needed for quarto knitting to PDF +RUN tlmgr install \ + scrartcl.cls \ + footnote.sty \ + tikzfill.image.sty \ + bookmark.sty + USER ${NB_USER} # Install learnr and other requested packages in https://2i2c.freshdesk.com/a/tickets/741 From 59b4d092b471f7a6d582bfdc8250c0a20cd31cef Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 2 Jan 2024 11:29:31 -0800 Subject: [PATCH 2/4] Update tlmgr before trying to install packages --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 681451f..9fa6d3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,8 @@ COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache -r /tmp/requirements.txt # Install packages needed for quarto knitting to PDF -RUN tlmgr install \ +RUN tlmgr update --self && \ + tlmgr install \ scrartcl.cls \ footnote.sty \ tikzfill.image.sty \ From ea2cdd0b9522a3ac1517dcbde7cd1f0a06e6ba70 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 2 Jan 2024 11:34:06 -0800 Subject: [PATCH 3/4] Remove package name suffixes --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9fa6d3d..5ce7db4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,11 @@ COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache -r /tmp/requirements.txt # Install packages needed for quarto knitting to PDF -RUN tlmgr update --self && \ - tlmgr install \ - scrartcl.cls \ - footnote.sty \ - tikzfill.image.sty \ - bookmark.sty +RUN tlmgr install \ + scrartcl \ + footnote \ + tikzfill.image \ + bookmark USER ${NB_USER} From 23fcdd9c10d5af51b5448a94fde970a7be833f32 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 2 Jan 2024 11:39:00 -0800 Subject: [PATCH 4/4] Use correct package names --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ce7db4..55d3c1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,9 @@ RUN pip install --no-cache -r /tmp/requirements.txt # Install packages needed for quarto knitting to PDF RUN tlmgr install \ - scrartcl \ - footnote \ - tikzfill.image \ + koma-script \ + mdwtools \ + tikzfill \ bookmark USER ${NB_USER}