Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update JRE base image with newer pdflatex version #48

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
#
# Source: https://github.com/dzhw/report-task
#
FROM adoptopenjdk:15.0.2_7-jre-hotspot-focal
FROM eclipse-temurin:21-jre-jammy
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