A template and an example for LaTeX projects.
Requirements: podman >= 3.4.4
or docker >= 24.0.1
podman run --interactive --tty --detach \
--env "TERM=xterm-256color" `# colored terminal` \
--volume "$(pwd):$(pwd)" `# mount your repo` \
--volume "$HOME/.cache:$HOME/.cache" `# mount cache` \
--userns keep-id `# keeps your non-root username` \
--workdir "$HOME" `# podman sets homedir to the workdir for some reason` \
--name latex \
ghcr.io/rudenkornk/latex_ubuntu:22.0.7
podman exec --user root latex bash -c "chown $(id --user):$(id --group) $HOME"
podman exec --workdir "$(pwd)" --interactive --tty latex bash
Note: on SELinux
systems you might need to add :z
to the volume mounts.
make
Deterministic list of requirements exists, but not specified. You can refer to the container description and install similar packages.
make
make clean