Add helpful files for the docker setup

This commit is contained in:
Julius Freudenberger 2022-04-22 15:07:56 +02:00
parent b3cd98e229
commit 9ca488baf9
5 changed files with 22 additions and 1 deletions

6
docker/README.md Normal file
View file

@ -0,0 +1,6 @@
# Docker setup for LaTeX
To use the docker setup create the container using Docker Compose.
The source files have to reside in a subfolder called `data`.
The batch or shell script provide an example on how to compile the document.

View file

@ -0,0 +1,8 @@
version: "3"
services:
texlive:
image: texlive/texlive
volumes:
- ./data/:/latex
working_dir: /latex
tty: true

3
docker/run.bat Normal file
View file

@ -0,0 +1,3 @@
docker-compose up -d
docker-compose exec texlive pdflatex file.tex
docker-compose down

4
docker/run.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
docker-compose up -d
docker-compose exec texlive pdflatex file.tex
docker-compose down