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

ARM64 Compatibility for Docker Image #16

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

borisroman
Copy link

Hi @kjarosh,

Thank you for this great project! I’ve made the necessary adjustments to the Dockerfile to add compatibility with the ARM64 architecture, as discussed in issue #13.

Changes:

  • The Dockerfile now includes architecture detection, allowing the image to be built and used on ARM64 systems, such as Apple Silicon Macs.
  • For ARM64, TeXLive is installed with a custom bin from here.
  • The bin path is dynamically linked to either the x86_64 or aarch64 installation, depending on the detected architecture.
  • The container build is split into 2 steps, as the image became bloated (the ARM image is still significantly larger than the x86 variant).

This implementation allows the image to work without needing Rosetta 2 emulation on ARM Macs, resolving the platform mismatch issue noted in the original report.

I hope this helps improve the flexibility of the image for users on different architectures. Let me know if you have any feedback or suggestions.

Best regards,
Boris

@borisroman borisroman marked this pull request as draft October 13, 2024 15:04
@borisroman
Copy link
Author

Converted to draft for now - not all packages are installing on arm.

@kjarosh
Copy link
Owner

kjarosh commented Oct 14, 2024

Hi! Thank you for your contribution!

I'm wondering how that will work for older distributions (namely 2018-2023). I understand that the platform-specific packages will not be updated by tlmgr once installed, but what if I want to build let's say TeX Live 2018 today?

I suspect those hosted binaries are available for the current TeX Live only and building an older one is not possible (even building 2024 in the future) — that would unfortunately disrupt the build process.

There is also the question of updating those packages, I see that they were published around the time 2024 was released, and there have been no updates since :/

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

Successfully merging this pull request may close these issues.

2 participants