python3 to run the latexrun build system.
md5 or md5sum utility to hash documents according to their value.memcached for caching compiled documents.docker run -d -p 2700:2700 -t aslushnikov/latex-online.the hard one - to do everything manually.Ī Docker image is hosted and auto-updated on.easy one, with the help of awesome project Docker.This part is for you if you'd like to deploy the service on your Compile it, cache the result and return it to user.If no, then do a shallow copy of the given git repo.
Get a hashSum of the repo without cloning the entire repository. This kind of request is handled in a bit different way, as we can If no, then extract file structure from the tarball, compile it,.The hash sum of the tarball is counted in some way.Given a tarball with files structure, compile it The hash sum of the file in counted in some wayģ.If no, then compile the file, cache the result and return it to user.If yes, then just return the precompiled PDF from cache.Check in cache if we've got a PDF for the hashsum.The hash sum of the file is counted in some way.The URL of the given file is fetched and saved locally.Given a tarball with files structure, compile itĮvery request is handled in a bit special way 1.Bash scripts which handle all the jobs related to the service (fetchingįiles, hashSumming them, compiling e.t.c).With the help of mc bridges the gap with memcached instance
OtherwiseĪ HTTP.4xx code will be returned with a compilation error log in response body. The service will return HTTP.2xx on success and compiled PDF file. Compile local files or git repo via command-line interface.Example 2: compile files with dependencies.In addition, the service provides command-line utility (for compiling local documents), API and Stand-Alone version. It can build PDF directly from GIT repository with TeX sources or from any link to TeX file. This service is developed to compile latex documents online.