2020-03-29 19:54:35 +02:00
![Deploy ](https://github.com/icaotix-docker/latex/workflows/Deploy/badge.svg )
2020-03-27 03:17:34 +01:00
# Schemes/Tags
## Sizes
2020-03-29 19:51:25 +02:00
* `infraonly` , `infraonly-scratch` - infrastructure-only scheme (no TeX at all)
* `minimal` , `minimal-scratch` , `minimal-incremental` - minimal scheme (plain only)
* `basic` , `basic-scratch` , `basic-incremental` - basic scheme (plain and latex)
* `small` , `small-scratch` , `small-incremental` - small scheme (basic + xetex, metapost, a few languages)
* `medium` , `medium-scratch` , `medium-incremental` - medium scheme (small + more packages and languages)
* `full` , `full-scratch` , `full-incremental` , `latest` - full scheme (everything)
2020-03-27 03:17:34 +01:00
## Extra Schemes
2020-03-29 19:51:25 +02:00
* `gust` , `gust-scratch` , `gust-incremental` - GUST TeX Live scheme
* `context` , `context-scratch` , `context-incremental` - ConTeXt scheme
* `tetex` , `tetex-scratch` , `tetex-incremental` - teTeX scheme (more than medium, but nowhere near full)
2020-03-27 03:17:34 +01:00
2020-03-29 19:51:25 +02:00
## Build Info `<tag>-incremental` (Image tree)
Images with this tag have all previous layers built in, use them for better caching.
2020-03-27 19:35:23 +01:00
```
2020-03-28 02:15:43 +01:00
infraonly (base image with ubuntu:18.04)
2020-03-28 02:19:10 +01:00
+---> minimal
+---> basic
+---> small
+---> context
+---> gust
+---> medium
+---> tetex
2020-03-28 02:15:43 +01:00
+---> full
2020-03-27 19:35:23 +01:00
```
2020-03-29 19:51:25 +02:00
NOTE: infraonly has no `incremental` tag.
2020-03-27 19:35:23 +01:00
2020-03-29 19:51:25 +02:00
## Build Info `<tag>-scratch`
These images are built from the base ubuntu:18.04 image. They only have one latex layer. They are usually a little bit smaller than their `incremental` counterparts. The `scratch` image is default when used with no tag extension. Also `latest` is built from scratch and is the same as `full` and `full-scratch` .
# How to use the image
2020-03-27 03:17:34 +01:00
Mount your source code at `/data` and run whatever you want with LaTeX.
# How to extend an Image
To extend the one of the docker-images with your packages.
`FROM icaotix/latex:<tag>`
2020-03-26 23:19:37 +01:00
#### Install latex packages
2020-03-28 18:48:02 +01:00
` RUN tlmgr install latexmk `
2020-03-26 23:19:37 +01:00
` RUN tlmgr install biber `
#### Minted + Pygments
` RUN tlmgr install minted `
```
RUN apt-get update \
& & apt-get install -qy python python-pip \
& & pip install pygments \
& & rm -rf /var/lib/apt/lists/*
```