-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major changes: - switch Docker base to Ubuntu 24.04 with TeX Live 2021
- Loading branch information
Showing
5 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
### TeX Live base image (TL2021 like ar5ivist, for better compatibility with LaTeXML) | ||
FROM ubuntu:22.04 | ||
### TeX Live base image | ||
FROM ubuntu:24.04 | ||
|
||
# equivs brings in a lot of dependencies, unfortunately | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN set -ex && apt-get update -qq && apt-get install -qy tzdata texlive-full | ||
RUN set -ex && apt update -qq && apt install -qy tzdata curl perl-modules && apt install -qy equivs --no-install-recommends | ||
|
||
# TL 2021 is the latest version for which expl3 loads in reasonable time | ||
ARG TEXLIVE_VERSION=2021 | ||
LABEL org.opencontainers.image.source=https://github.com/vlmantova/bookml | ||
LABEL org.opencontainers.image.title="TeX Live 2021 base for BookML" | ||
LABEL org.opencontainers.image.description="TeX Live 2021 base for BookML" | ||
LABEL org.opencontainers.image.title="TeX Live ${TEXLIVE_VERSION} base for BookML" | ||
LABEL org.opencontainers.image.description="TeX Live ${TEXLIVE_VERSION} base for BookML" | ||
|
||
# install fake texlive-local package | ||
# remove dependency on freeglut3 | ||
RUN set -ex && curl -L "https://wiki.debian.org/TeXLive?action=AttachFile&do=get&target=debian-equivs-${TEXLIVE_VERSION}-ex.txt" | grep -v Depends: > /tmp/texlive-equiv | ||
RUN set -ex && cd /tmp && equivs-build texlive-equiv && dpkg -i texlive-local_*.deb | ||
RUN rm -fr /tmp/* | ||
|
||
# install TeX Live | ||
RUN set -ex && cd /tmp && curl -L https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/${TEXLIVE_VERSION}/install-tl-unx.tar.gz | tar xzv | ||
|
||
COPY <<EOF /tmp/texlive.profile | ||
instopt_adjustpath 1 | ||
tlpdbopt_install_docfiles 0 | ||
tlpdbopt_install_srcfiles 0 | ||
EOF | ||
RUN set -ex && cd /tmp && perl install-tl-*/install-tl --repository https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/${TEXLIVE_VERSION}/tlnet-final --profile /tmp/texlive.profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# BookML: bookdown flavoured GitBook port for LaTeXML | ||
# Copyright (C) 2021-23 Vincenzo Mantova <[email protected]> | ||
# Copyright (C) 2021-24 Vincenzo Mantova <[email protected]> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
|
@@ -68,24 +68,26 @@ docker-texlive-ctx docker-latexml-ctx docker-bookml-ctx: | |
docker-bookml-ctx/release.zip: release.zip | docker-bookml-ctx | ||
$(CP) "$<" "$@" | ||
|
||
TEXLIVE_VERSION=2021 | ||
LATEXML_VERSION=0.8.8 | ||
docker-amd64 docker-arm64: docker-%: Dockerfile docker-bookml-ctx/release.zip | ||
docker build --platform linux/$* --build-arg=BOOKML_VERSION=$(BOOKML_VERSION) --tag ghcr.io/vlmantova/bookml:$(BOOKML_VERSION)-lx0.8.8-tl2021-$* -f "$<" docker-bookml-ctx | ||
docker build --platform linux/$* --build-arg=BOOKML_VERSION=$(BOOKML_VERSION) --build-arg=LATEXML_VERSION=$(LATEXML_VERSION) --build-arg=TEXLIVE_VERSION=$(TEXLIVE_VERSION) --tag ghcr.io/vlmantova/bookml:$(BOOKML_VERSION)-lx$(LATEXML_VERSION)-tl$(TEXLIVE_VERSION)-$* -f "$<" docker-bookml-ctx | ||
|
||
docker: docker-amd64 docker-arm64 | ||
docker manifest create ghcr.io/vlmantova/bookml:$(BOOKML_VERSION) --amend ghcr.io/vlmantova/bookml:$(BOOKML_VERSION)-lx0.8.8-tl2021-amd64 --amend ghcr.io/vlmantova/bookml:$(BOOKML_VERSION)-lx0.8.8-tl2021-arm64 | ||
docker manifest create ghcr.io/vlmantova/bookml:latest --amend ghcr.io/vlmantova/bookml:$(BOOKML_VERSION)-lx0.8.8-tl2021-amd64 --amend ghcr.io/vlmantova/bookml:$(BOOKML_VERSION)-lx0.8.8-tl2021-arm64 | ||
docker manifest create ghcr.io/vlmantova/bookml:$(BOOKML_VERSION) --amend ghcr.io/vlmantova/bookml:$(BOOKML_VERSION)-lx$(LATEXML_VERSION)-tl$(TEXLIVE_VERSION)-amd64 --amend ghcr.io/vlmantova/bookml:$(BOOKML_VERSION)-lx$(LATEXML_VERSION)-tl$(TEXLIVE_VERSION)-arm64 | ||
docker manifest create ghcr.io/vlmantova/bookml:latest --amend ghcr.io/vlmantova/bookml:$(BOOKML_VERSION)-lx$(LATEXML_VERSION)-tl$(TEXLIVE_VERSION)-amd64 --amend ghcr.io/vlmantova/bookml:$(BOOKML_VERSION)-lx$(LATEXML_VERSION)-tl$(TEXLIVE_VERSION)-arm64 | ||
|
||
docker-latexml-amd64 docker-latexml-arm64: docker-latexml-%: Dockerfile-latexml | docker-latexml-ctx | ||
docker build --platform linux/$* --tag ghcr.io/vlmantova/bookml-latexml:0.8.8-tl2021-$* -f "$<" docker-latexml-ctx | ||
docker build --platform linux/$* --build-arg=LATEXML_VERSION=$(LATEXML_VERSION) --build-arg=TEXLIVE_VERSION=$(TEXLIVE_VERSION) --tag ghcr.io/vlmantova/bookml-latexml:$(LATEXML_VERSION)-tl$(TEXLIVE_VERSION)-$* -f "$<" docker-latexml-ctx | ||
|
||
docker-latexml: docker-latexml-amd64 docker-latexml-arm64 | ||
docker manifest create ghcr.io/vlmantova/bookml-latexml:0.8.8-tl2021 --amend ghcr.io/vlmantova/bookml-latexml:0.8.8-tl2021-amd64 --amend ghcr.io/vlmantova/bookml-latexml:0.8.8-tl2021-arm64 | ||
docker manifest create ghcr.io/vlmantova/bookml-latexml:$(LATEXML_VERSION)-tl$(TEXLIVE_VERSION) --amend ghcr.io/vlmantova/bookml-latexml:$(LATEXML_VERSION)-tl$(TEXLIVE_VERSION)-amd64 --amend ghcr.io/vlmantova/bookml-latexml:$(LATEXML_VERSION)-tl$(TEXLIVE_VERSION)-arm64 | ||
|
||
docker-texlive-amd64 docker-texlive-arm64: docker-texlive-%: Dockerfile-texlive | docker-texlive-ctx | ||
docker build --platform linux/$* --tag ghcr.io/vlmantova/bookml-texlive:2021-$* -f "$<" docker-texlive-ctx | ||
docker build --platform linux/$* --build-arg=TEXLIVE_VERSION=$(TEXLIVE_VERSION) --tag ghcr.io/vlmantova/bookml-texlive:$(TEXLIVE_VERSION)-$* -f "$<" docker-texlive-ctx | ||
|
||
docker-texlive: docker-texlive-amd64 docker-texlive-arm64 | ||
docker manifest create ghcr.io/vlmantova/bookml-texlive:2021 --amend ghcr.io/vlmantova/bookml-texlive:2021-amd64 --amend ghcr.io/vlmantova/bookml-texlive:2021-arm64 | ||
docker manifest create ghcr.io/vlmantova/bookml-texlive:$(TEXLIVE_VERSION) --amend ghcr.io/vlmantova/bookml-texlive:$(TEXLIVE_VERSION)-amd64 --amend ghcr.io/vlmantova/bookml-texlive:$(TEXLIVE_VERSION)-arm64 | ||
|
||
manifest: | ||
podman manifest create ghcr.io/vlmantova/bookml:latest ghcr.io/vlmantova/bookml:$(BOOKML_VERSION) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters