Compare commits

..

No commits in common. "0bb18c53168f00e78823dc07b30aa45d78f26897" and "8fbcdc0417776da5fcfa3517c8751a9ce7b4c232" have entirely different histories.

3 changed files with 9 additions and 42 deletions

View File

@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive PYTHONUNBUFFERED=1 LC_ALL=C.UTF-8 LANG=C.UTF-
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl git make emacs-nox python3 python3-pip python3-matplotlib \ ca-certificates curl git make emacs-nox python3 python3-pip python3-matplotlib \
latexmk biber texlive-full && rm -rf /var/lib/apt/lists/* latexmk biber texlive-full && rm -rf /var/lib/apt/lists/*
RUN useradd -m -s /bin/bash builder || true RUN useradd -m -u 1000 builder
WORKDIR /work WORKDIR /work
USER builder USER builder
CMD ["bash", "-lc", "make VENUE=arxiv"] CMD ["bash", "-lc", "make VENUE=arxiv"]

View File

@ -1,38 +1,14 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM ubuntu:24.04 FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive PYTHONUNBUFFERED=1 LC_ALL=C.UTF-8 LANG=C.UTF-8 PATH=/opt/TinyTeX/bin/x86_64-linux:$PATH
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONUNBUFFERED=1 \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8 \
TINYTEX_DIR=/opt/TinyTeX \
PATH=/opt/TinyTeX/bin/x86_64-linux:$PATH
# Tools that the TinyTeX installer uses (wget, tar, xz) + our stack
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \ ca-certificates curl git make emacs-nox python3 python3-pip python3-matplotlib perl && \
curl wget tar xz-utils \ rm -rf /var/lib/apt/lists/*
git make \ RUN curl -sL https://yihui.org/tinytex/install-unx.sh | sh -s - --admin --no-path && \
emacs-nox \ /opt/TinyTeX/bin/*/tlmgr path add && \
python3 python3-pip python3-matplotlib \ tlmgr install latexmk biber latex-bin biblatex hyperref geometry microtype etoolbox enumitem xcolor listings IEEEtran acmart elsarticle && \
perl \ tlmgr path add
&& rm -rf /var/lib/apt/lists/* RUN useradd -m -u 1000 builder
# Install TinyTeX *into /opt/TinyTeX* and set up tlmgr on PATH
# (we call tlmgr via its absolute path once, then rely on the symlinks it creates)
RUN curl -fsSL https://yihui.org/tinytex/install-unx.sh \
| TINYTEX_DIR="$TINYTEX_DIR" sh -s - --admin --no-path \
&& "$TINYTEX_DIR"/bin/*/tlmgr path add \
&& "$TINYTEX_DIR"/bin/*/tlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet \
&& "$TINYTEX_DIR"/bin/*/tlmgr update --self \
&& "$TINYTEX_DIR"/bin/*/tlmgr install \
latexmk biber latex-bin biblatex hyperref geometry microtype etoolbox enumitem \
xcolor listings ieeetran acmart elsarticle \
&& fmtutil-sys --all
# Non-root user (maps nicer to host file perms)
RUN useradd -m -s /bin/bash builder || true
WORKDIR /work WORKDIR /work
USER builder USER builder
CMD ["bash", "-lc", "make VENUE=arxiv"] CMD ["bash", "-lc", "make VENUE=arxiv"]

View File

@ -20,15 +20,6 @@ clean:
latexmk -C latexmk -C
rm -f paper-*.pdf rm -f paper-*.pdf
debug:
emacs -Q --batch -l build.el --eval "(setenv \"VENUE\" \"$(VENUE)\")" \
--eval "(with-current-buffer (find-file-noselect \"paper.org\") (wes--inject-setupfile \"$(VENUE)\") (org-latex-export-to-latex))"
latexmk -C
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -shell-escape paper.tex || true
@echo "---- paper.log (tail) ----"
@tail -n 200 paper.log || true
# Dockerized builds # Dockerized builds
DOCKER_IMAGE ?= polypaper:full DOCKER_IMAGE ?= polypaper:full
DOCKERFILE ?= Dockerfile.full DOCKERFILE ?= Dockerfile.full