pandoc / dockerfiles

Dockerfiles for various pandoc images
GNU General Public License v2.0
364 stars 98 forks source link

TexLive 2023 was released #196

Closed firefart closed 1 year ago

firefart commented 1 year ago

TexLive 2023 was released and now all dependant images fail when you try to install packages.

https://www.tug.org/texlive/acquire-netinstall.html

I think this file needs to be updated to 2023: https://github.com/pandoc/dockerfiles/blob/master/common/latex/install-texlive.sh#L5

Error message:

tlmgr: Local TeX Live (2022) is older than remote repository (2023).
jackmcpickle commented 1 year ago

Yes please!

robflintham commented 1 year ago

In the meantime, is it possible to change the repository path to use a 2022 repository for installing packages?

tarleb commented 1 year ago

I'm looking into this. We're facing some issues with biber on Alpine; the problem prevents a painless update. For the time being, please use this workaround (and don't update biber).

tlmgr option repository ftp://tug.org/historic/systems/texlive/2022/tlnet-final
tarleb commented 1 year ago

I decided to use the above workaround as the fix: I'm running the below locally

for tag in 3.1.1.0 3.1.1 3.1 3 3.0.1.0 3.0.1 3.0 2.19.2.0 2.19.2 2.19 2; do
    docker build --tag pandoc/latex:$tag --tag pandoc/latex:$tag-alpine \
        --build-arg base_image=pandoc/latex:$tag --build-arg texlive=2022  \
        -f common/texlive-freeze.Dockerfile .
done

where texlive-freeze.Dockerfile contains

ARG base_image=pandoc/latex
FROM $base_image
ARG texlive=2022
RUN tlmgr option repository \
    ftp://tug.org/historic/systems/texlive/$texlive/tlnet-final

This is not ideal, but I can't think of a better fix. On the plus side, this will only add a small layer on top of the existing images, which should make pulls really quick.

I'll start to upload the new images once the above command completes.

tarleb commented 1 year ago

I've done the same for Ubuntu images, so I consider this fixed for now. We'll need a better fix for the biber issue, which is now tracked in #198.

firefart commented 1 year ago

@tarleb thanks for your fix but I'm still getting the same error with pandoc/extra:latest

cagix commented 1 year ago

@tarleb thanks for your fix but I'm still getting the same error with pandoc/extra:latest

same here ...

tarleb commented 1 year ago

ah sorry, forgot about pandoc/extra again. Will fix asap

tarleb commented 1 year ago

Same fix applied there.

firefart commented 1 year ago

Confirmed working, thanks!

cagix commented 1 year ago

thx!