pandoc / dockerfiles

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

Allow TeXLive mirror to be selected #209

Closed garethstockwell closed 4 months ago

garethstockwell commented 1 year ago

If set, the TEXLIVE_MIRROR_URL environment variable identifies the TeXLive mirror which should be used.

This is particularly useful when installing a historic TeXLive version. In this case, there is no automated mirror redirect, and the default mirror (ftp://tug.org/historic/) can become overloaded.

A mirror can be selected from https://www.tug.org/historic/, for example:

make latex \ PANDOC_COMMIT=3.1.1 \ TEXLIVE_MIRROR_URL=https://ftp.math.utah.edu/pub/tex/historic/

When installing the most recent TeXLive version, by default the mirror with the fastest response is used, by resolving the mirror URL http://mirror.ctan.org/.

Alternatively, a mirror can be manually selected from https://ctan.org/mirrors/, for example:

make latex \ TEXLIVE_MIRROR_URL=http://tug.ctan.org/tex-archive/

tarleb commented 4 months ago

Many apologies for letting this sit unanswered for so long. This is a great idea, I think, and I really appreciate the additional script cleanup, too. :)

I'll resolve the conflicts and merge asap.

tarleb commented 4 months ago

Thank you! :sparkles: