Newer
Older
This is a Dockerfile/Earthly repository of FULL TeX Live installation (but
without src/doc/...).
The main repository is:
- https://gitlab.inf.unibz.it/commul/docker/tools/texlive/
The main (internal) container registry is:
- https://gitlab.inf.unibz.it/commul/docker/tools/texlive/container_registry
The (additional) external container registry is:
- https://hub.docker.com/r/commul/texlive
## Usage
### With `docker`
The working directory inside the container is **/docs** and the variable
**$PWD** contains the path of the current directory.
docker run \
--rm \
--volume $PWD:/docs \
--user $(id -u):$(id -g) \
gitlab.inf.unibz.it:4567/commul/docker/tools/texlive/2020/full:latest \
The `docker-compose.yml` file defines a service `texlive` which can be used as follows:
```bash
[COMPOSE_USER=$(id -u):$(id -g)] docker-compose run texlive pdflatex somedoc.tex
```
The `docker-compose.yml` file defines a service `texlive-version` which can be used to select different versions as follows:
```bash
[COMPOSE_USER=$(id -u):$(id -g)] VERSION=2019/full:latest docker-compose run texlive-version pdflatex --version
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019)
```
With the `$(pwd)/bin` directory added to the `PATH` environment:
$ git clone https://gitlab.inf.unibz.it/commul/docker/tools/texlive
$ earthly --push +docker
# OR Update available images (apt-get update and tlmgr update --self )
$ earthly --push --build-arg VERSION=2021.01 +docker