Compare commits

..

10 Commits

Author SHA1 Message Date
Marcel Schwarz
6ef0f0ace2
Update Dockerfile 2022-08-18 16:28:23 +02:00
Marcel Schwarz
c566e14a18
Update README.md 2022-08-18 15:57:05 +02:00
e19dd4f150
Update Dockerfile 2021-09-20 00:31:55 +02:00
008fed2191 Add libfontconfig to dependencies 2020-04-27 00:10:21 +02:00
3915c0fbd6 Reduce image size, remove unnecessary packages 2020-04-26 23:58:22 +02:00
e2d0557401
Update Path to 2020 2020-04-26 22:59:43 +02:00
26927c8bef Merge branch 'github-actions' 2020-03-29 19:57:44 +02:00
2df4255a6a Remove github-actions branch from workflow triggers 2020-03-29 19:57:34 +02:00
87121e68ce Add readme deploy badge 2020-03-29 19:54:35 +02:00
07b61ac245 Update readme, point schedule to 18:00 UTC on Sundays
fix source image from incremental job
2020-03-29 19:51:25 +02:00
3 changed files with 32 additions and 24 deletions

View File

@ -4,9 +4,8 @@ on:
push: push:
branches: branches:
- master - master
- github-actions
schedule: schedule:
- cron: 0 18 * * * - cron: 0 18 * * 0
jobs: jobs:
@ -75,19 +74,19 @@ jobs:
- scheme: minimal - scheme: minimal
source: infraonly source: infraonly
- scheme: basic - scheme: basic
source: minimal source: minimal-incremental
- scheme: small - scheme: small
source: basic source: basic-incremental
- scheme: context - scheme: context
source: small source: small-incremental
- scheme: gust - scheme: gust
source: context source: context-incremental
- scheme: medium - scheme: medium
source: gust source: gust-incremental
- scheme: tetex - scheme: tetex
source: medium source: medium-incremental
- scheme: full - scheme: full
source: tetex source: tetex-incremental
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -1,18 +1,21 @@
![Deploy](https://github.com/icaotix-docker/latex/workflows/Deploy/badge.svg)
# Schemes/Tags # Schemes/Tags
## Sizes ## Sizes
* `infraonly` - infrastructure-only scheme (no TeX at all) * `infraonly`, `infraonly-scratch` - infrastructure-only scheme (no TeX at all)
* `minimal` - minimal scheme (plain only) * `minimal`, `minimal-scratch`, `minimal-incremental` - minimal scheme (plain only)
* `basic` - basic scheme (plain and latex) * `basic`, `basic-scratch`, `basic-incremental` - basic scheme (plain and latex)
* `small` - small scheme (basic + xetex, metapost, a few languages) * `small`, `small-scratch`, `small-incremental` - small scheme (basic + xetex, metapost, a few languages)
* `medium` - medium scheme (small + more packages and languages) * `medium`, `medium-scratch`, `medium-incremental` - medium scheme (small + more packages and languages)
* `full`, `latest` - full scheme (everything) * `full`, `full-scratch`, `full-incremental`, `latest` - full scheme (everything)
## Extra Schemes ## Extra Schemes
* `gust` - GUST TeX Live scheme * `gust`, `gust-scratch`, `gust-incremental` - GUST TeX Live scheme
* `context` - ConTeXt scheme * `context`, `context-scratch`, `context-incremental` - ConTeXt scheme
* `tetex` - teTeX scheme (more than medium, but nowhere near full) * `tetex`, `tetex-scratch`, `tetex-incremental` - teTeX scheme (more than medium, but nowhere near full)
## Build Info (Image tree) ## Build Info `<tag>-incremental` (Image tree)
Images with this tag have all previous layers built in, use them for better caching.
``` ```
infraonly (base image with ubuntu:18.04) infraonly (base image with ubuntu:18.04)
+---> minimal +---> minimal
@ -24,8 +27,12 @@ infraonly (base image with ubuntu:18.04)
+---> tetex +---> tetex
+---> full +---> full
``` ```
NOTE: infraonly has no `incremental` tag.
# How to use ## 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
Mount your source code at `/data` and run whatever you want with LaTeX. Mount your source code at `/data` and run whatever you want with LaTeX.
# How to extend an Image # How to extend an Image
@ -45,3 +52,5 @@ RUN apt-get update \
&& pip install pygments \ && pip install pygments \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
``` ```
Last updated: 2022-08-18

View File

@ -5,7 +5,7 @@ ENV HOME /data
WORKDIR /data WORKDIR /data
RUN apt-get update -q \ RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \ && apt-get install -qy libfontconfig1 tar perl wget \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ARG SCHEME ARG SCHEME
@ -13,9 +13,9 @@ ARG SCHEME
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \ RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir /install-tl-unx \ && mkdir /install-tl-unx \
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \ && tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
&& rm install-tl-unx.tar.gz \
&& echo "selected_scheme scheme-${SCHEME}" >> /install-tl-unx/texlive.profile \ && echo "selected_scheme scheme-${SCHEME}" >> /install-tl-unx/texlive.profile \
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \ && /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
&& rm -r /install-tl-unx \ && rm -r /install-tl-unx
&& rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2019/bin/x86_64-linux:${PATH}" ENV PATH="/usr/local/texlive/2022/bin/x86_64-linux:${PATH}"