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 Docker Hub image (2.9.6980 -> 2.9.7050) #13

Closed
skyfrk opened this issue Aug 12, 2019 · 8 comments
Closed

Update Docker Hub image (2.9.6980 -> 2.9.7050) #13

skyfrk opened this issue Aug 12, 2019 · 8 comments
Labels

Comments

@skyfrk
Copy link

skyfrk commented Aug 12, 2019

Hello there! Could you please release a fresh image to the Docker Hub?

I tried to use the docker hub image to build my document using: docker run --rm -ti -v C:\some\path:/miktex/work miktex/miktex pdflatex root.tex

But it failed while downloading some packages:

starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: http://mirrors.sjtug.sjtu.edu.cn/ctan/systems/win32/miktex/tm/packages/
package repository digest: 0051892e82e2f6a3249012fd042a9b51
going to download 8630983 bytes
going to install 29 file(s) (1 package(s))
downloading http://mirrors.sjtug.sjtu.edu.cn/ctan/systems/win32/miktex/tm/packages/l3kernel.tar.lzma...
8.63 MB, 424.85 Mbit/s
extracting files from l3kernel.tar.lzma...
======================================================================

(/miktex/.miktex/texmfs/install/tex/latex/l3kernel/expl3.sty
(/miktex/.miktex/texmfs/install/tex/latex/l3kernel/expl3-code.tex
======================================================================
starting package maintenance...
installation directory: /miktex/.miktex/texmfs/install
package repository: http://mirrors.sjtug.sjtu.edu.cn/ctan/systems/win32/miktex/tm/packages/
package repository digest: 0051892e82e2f6a3249012fd042a9b51
going to download 236231 bytes
going to install 11 file(s) (1 package(s))
downloading http://mirrors.sjtug.sjtu.edu.cn/ctan/systems/win32/miktex/tm/packages/unicode-data.tar.lzma...
0.24 MB, 620.44 Mbit/s
extracting files from unicode-data.tar.lzma...
======================================================================
)

! LaTeX Error: File `l3backend-pdfmode.def' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: def)

Enter file name:

I think that this is the problem because building the document just worked fine when I built the docker image on my own.

Building the docker image on my own resulted in MiKTeX v2.9.7050 living inside the container instead of v2.9.6980.

Have a nice day! 😃

@gw0
Copy link

gw0 commented Sep 24, 2019

Yes, a fresh official rebuild would be nice. Latest tag 2.9.6990 has some issues, like:

ERROR - Error: Found biblatex control file version 3.6, expected version 3.5.
This means that your biber (2.12) and biblatex (3.13a) versions are incompatible.
See compat matrix in biblatex or biber PDF documentation.

@nanmu42
Copy link

nanmu42 commented Oct 12, 2019

I built an unofficial one, which might help: https://hub.docker.com/r/nanmu42/miktex-docker .

@gw0
Copy link

gw0 commented Jan 24, 2020

@nanmu42 Have you tested your unofficial version? Because your version gives the same error, but with different versions:

ERROR - Error: Found biblatex control file version 3.6, expected version 3.7.
This means that your biber (2.14) and biblatex (3.13a) versions are incompatible.
See compat matrix in biblatex or biber PDF documentation.

@nanmu42
Copy link

nanmu42 commented Jan 24, 2020

Could you provide a minimal example to reproduce this error?

@gw0
Copy link

gw0 commented Jan 24, 2020

After performing a clean reinstall, cleaning all auxiliary files, and some debugging, I managed to get both Docker images to work. Because TeX packages are constantly changing and MiKTeX downloads them on demand, one always has to update MiKTeX repositories before using any image.

The solution is to use the official Docker image miktex/miktex like that:

$ sudo docker run -it -v $(pwd):/miktex/work miktex/miktex bash
$ mpm --admin --update
$ latexmk example.tex

Consider adding mpm --admin --update to documentation. Cleaning /miktex/.miktex and all auxiliary files is also a good troubleshooting step.

If anyone is interested in a trivial example that uses XeLaTeX and Biber to compile to PDF:

% example.tex
\documentclass[a4paper,english]{article}
\RequirePackage{biblatex}
\addbibresource{example.bib}
\begin{document}
This is some text.
\cite{Foo2019}
\end{document}
% example.bib
@misc{Foo2019,
author = {Foo, Bar},
title = {{Learning to foo the bar}},
year = {2019}
}
# .latexmkrc
$bibtex_fudge=0;
# use xelatex - xdv -> pdf - not working due to bugs in 4.61
$pdf_mode=5;
&alt_tex_cmds;

@stale
Copy link

stale bot commented Aug 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 3, 2020
@stale stale bot closed this as completed Aug 10, 2020
@yM1ndst0rM
Copy link

Bumping for visibility: An update of the official build on dockerhub is very appreciated

@rose-a
Copy link

rose-a commented Jan 3, 2021

Yep, the docker hub image is outdated since August!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants