Skip to content

Commit

Permalink
Added a memory configuration to allow for processing of larger reports (
Browse files Browse the repository at this point in the history
#47)

See issue dzhw/metadatamanagement#3326 for more details.
  • Loading branch information
tilovillwock authored Apr 29, 2024
1 parent 3823d3c commit 8980401
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 427 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#
FROM adoptopenjdk:15.0.2_7-jre-hotspot-focal
MAINTAINER René Reitmann <[email protected]>
ARG JAR_FILE

# install all available package updates
RUN apt-get update && apt-get upgrade -y -q && apt-get dist-upgrade -y -q
Expand All @@ -23,9 +22,16 @@ RUN apt-get update \
RUN mkdir /usr/share/texlive/texmf-dist/tex/latex/calibri
COPY latex-packages/fonts/Calibri /usr/share/texlive/texmf-dist/
RUN echo "Map Calibri.map" >> /usr/share/texlive/texmf-dist/web2c/updmap.cfg
RUN fc-cache && texhash && mktexlsr && updmap-sys

# copy memory limits config
COPY latex-packages/config/memory-limits.cnf /etc/texmf/texmf.d/

# update texlive
RUN fc-cache && update-texmf && texhash && mktexlsr && updmap-sys

# copy other document assets
COPY latex-packages/doc /app/doc

# COPY the spring boot task jar
ARG JAR_FILE
COPY ${JAR_FILE} /app/report-task.jar
7 changes: 7 additions & 0 deletions latex-packages/config/memory-limits.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
main_memory = 12000000
extra_mem_top = 12000000
extra_mem_bot = 12000000
font_mem_size = 12000000
pool_size = 12000000
buf_size = 12000000
save_size = 12000000
3 changes: 2 additions & 1 deletion latex-packages/doc/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
filename=Main.tex
filename=Main.tex

# pdflatex is invoked twice to add page numbers to the table of content
pdf:
pdflatex -synctex=1 -interaction=errorstopmode -file-line-error -halt-on-error ${filename}
pdflatex -synctex=1 -interaction=errorstopmode -file-line-error -halt-on-error ${filename}
Expand Down
Loading

0 comments on commit 8980401

Please sign in to comment.