Re: [NTG-context] Containerized ConTeXt
The Island of TeX builds Docker images for ConTeXt weekly. https://gitlab.com/islandoftex/images/context registry.gitlab.com/islandoftex/images/context:lmtx Cheers, Henri On Tue, 2022-12-13 at 20:56 -0800, Thangalin via ntg-context wrote: > Hi again, > > I've added the start of a podman container for invoking ConTeXt that > may be of interest: > > https://github.com/DaveJarvis/keenwrite/tree/main/container > > The Containerfile sets up ConTeXt to work with my themes: > > https://github.com/DaveJarvis/keenwrite-themes > > The manage.sh shell script is a wrapper around the podman command to > help build, save, and load the container, as well as connect and run > commands. It's a work-in-progress. > > My goal is to simplify the setup and configuration of ConTeXt as well > as make the instructions "cross platform" owing to containerization. > From there, I want to call out to the container from KeenWrite to > typeset PDF documents using one of the themes. Further, I'd like to > have KeenWrite download and install ConTeXt automatically using > podman. I believe this will make it easier for people to generate > high-quality PDFs from (R) Markdown documents because they'd only > have > to download KeenWrite, then ask KeenWrite to download/configure > ConTeXt automatically, in a cross-platform fashion. > > Thoughts? Suggestions for improvement? > _ > __ > If your question is of interest to others as well, please add an > entry to the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > _ > __ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Containerized ConTeXt
Thangalin via ntg-context writes: > Thoughts? Suggestions for improvement? If you are looking for technical suggestions, every RUN line will create a layer even if you delete files later. I'd suggest making the final image by copying the root directory of a multistage container, e.g. https://adriancitu.com/2022/03/11/7-ways-to-build-lighter-linux-containers/ Alternatively, do all the steps before installing ConTeXt in a multistage container, and run all shell commands that install ConTeXt in one action, then you get two layers and the lower one only changes if a font changes (or alpine:latest). -- Leah Neukirchenhttps://leahneukirchen.org/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Containerized ConTeXt
Hi again, I've added the start of a podman container for invoking ConTeXt that may be of interest: https://github.com/DaveJarvis/keenwrite/tree/main/container The Containerfile sets up ConTeXt to work with my themes: https://github.com/DaveJarvis/keenwrite-themes The manage.sh shell script is a wrapper around the podman command to help build, save, and load the container, as well as connect and run commands. It's a work-in-progress. My goal is to simplify the setup and configuration of ConTeXt as well as make the instructions "cross platform" owing to containerization. From there, I want to call out to the container from KeenWrite to typeset PDF documents using one of the themes. Further, I'd like to have KeenWrite download and install ConTeXt automatically using podman. I believe this will make it easier for people to generate high-quality PDFs from (R) Markdown documents because they'd only have to download KeenWrite, then ask KeenWrite to download/configure ConTeXt automatically, in a cross-platform fashion. Thoughts? Suggestions for improvement? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___