
On Tue, 29 Apr 2025, Marco Riggirello wrote:
Hi Bruce,
thanks for your suggestions. Since I wanted to play with a solution similar to the one posted by Adityam on his blog
https://adityam.github.io/context-blog/post/markdown-with-gpp/
I ended up with a custom Docker image to have gpp, pandoc and context in the same environment. Here's the Dockerfile, if one wants to try it out (or to improve it!)
FROM pandoc/core:latest
# Build GPP ARG GPP_VERSION=2.28 WORKDIR /build
RUN apk -U upgrade && \ apk add build-base wget && \ wget -q https://github.com/logological/gpp/releases/download/${GPP_VERSION}/gpp-${GPP_VERSION}.tar.bz2 && \ tar -xvjf gpp-${GPP_VERSION}.tar.bz2 && \ cd gpp-${GPP_VERSION} && \ ./configure && \ make && \ make install
# Install ConTeXt LMTX WORKDIR /opt
ENV PATH=/opt/context/tex/texmf-linuxmusl-64/bin:opt/context/bin:$PATH
RUN apk add unzip curl libc6-compat ca-certificates rsync && \ wget -q https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip && \ unzip context-linux-64.zip -d context && \ cd context && \ chmod 755 install.sh && \ ./install.sh && \ cd tex && \ mtxrun --script install-modules --install filter && \ context --generate
ENTRYPOINT ["/opt/context/tex/texmf-linuxmusl-64/bin/context"]
WORKDIR /data
# Quick test RUN gpp --version && \ pandoc --version && \ context --version
# Last cleanup RUN apk del unzip curl wget build-base libc6-compat ca-certificates rsync
In the spirit of the context world, I think a good name for this image could be context-gppd ;)
If it is okay with you, I can add this to the blog post (and credit that it is from you) Aditya