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
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. 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?
Thangalin via ntg-context
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 Neukirchen
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 _____________________________________________________________________ ______________
participants (3)
-
Henri Menke
-
Leah Neukirchen
-
Thangalin