Skip to content

Harvard-University-iCommons/latex-container

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

latex-container

A docker container which can take a LaTeX input on stdin and return a JPG on stdout. It tries to be a little bit secure by doing the following:

  • Running each render as a separate container instance.

  • LaTeX runs as a regular user inside of the container (Dockerfile).

  • Limiting CPU, memory and time taken to render. (in docker invocation and init.sh)

  • Detecting dodgy LaTeX commands that can be used to execute system commands. (in init.sh)

  • Running LaTeX in paranoid configuration. (in init.sh)

Build:

docker build -t latex .

Usage:

echo "e=mc^2" | docker run -i --cpus="1" latex > emc2.jpg

GPL v3, please see the LICENSE file for license information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 35.0%
  • Shell 34.1%
  • TeX 22.3%
  • Python 8.6%