Multiplatform Docker images for Quarto #5129
jdutant
started this conversation in
Show and Tell
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
There are quite a few docker images for Quarto around, but I haven't seen any that works on new Macs (Apple Silicon, aka aarch64 or arm64) as well as amd64 (see #3308 (comment)). So here are a couple:
Minimal: just quarto-cli.
💾
docker pull jdutant/quarto-minimal
Latex: a basic Tex Live installation (not TinyTeX because Quarto can't install it on arm64)
💾
docker pull jdutant/quarto-latex
Try them out (this will pull them from docker hub):
See the repository to customize and build them yourself. It also illustrates how to use them as GitHub actions.
jdutant/quarto-dockerfiles
Image stages are completely modular (each does its own
apt-get
update), so it should be relatively easy to graft the steps that install Quarto and LaTeX onto a multiplatform base image for R or Python.Currently they run Quarto 1.3.313 on ubuntu (I couldn't use alpine as Quarto needs glibc). But you can build them with another version using
--build-arg QUARTO_VERSION=1.3.306
. Note that older versions like 1.2.475 don't have a arm64 build, so they would only work on amd64 machines.Enjoy 🚀
PS I'd like to add instructions on using docker-compose and a volume to persist any LaTeX packages installed on the fly but haven't gone round to do it. If you do that please let me know!
Beta Was this translation helpful? Give feedback.
All reactions