superruzafa / visual-scala-reference

Visual Scala Reference
https://superruzafa.github.io/visual-scala-reference
269 stars 28 forks source link

RUN tlmgr update --self fails in Dockerfile #35

Open LyndonArmitage opened 5 months ago

LyndonArmitage commented 5 months ago

I tried to run the docker build with the following code:

docker build --compress -t visual-scala-reference .

Which failed on step 3:

 => [2/8] RUN apk update && apk add --no-cache make hugo inotify-tools                                                                                                                                                                    10.9s
 => ERROR [3/8] RUN tlmgr update --self                                                                                                                                                                                                    4.5s
------
 > [3/8] RUN tlmgr update --self:
4.394
4.394 tlmgr: Local TeX Live (2020) is older than remote repository (2023).
4.394 Cross release updates are only supported with
4.394   update-tlmgr-latest(.sh/.exe) --update
4.394 See https://tug.org/texlive/upgrade.html for details.
------
Dockerfile:5
--------------------
   3 |     RUN apk update && apk add --no-cache make hugo inotify-tools
   4 |
   5 | >>> RUN tlmgr update --self
   6 |     RUN tlmgr install standalone
   7 |     RUN tlmgr install pgf
--------------------
ERROR: failed to solve: process "/bin/sh -c tlmgr update --self" did not complete successfully: exit code: 1

The logs link to https://tug.org/texlive/upgrade.html which suggests a way of upgrading, alternatively it suggests building with the newer TexLive installation.

This Dockerfile uses this repos Docker image as a base: https://github.com/superruzafa/docker-tinytex

Perhaps the source image needs updating? DockerHub lists a 0.5 tag that was updated a year ago compared to the 0.2 tag from 3 years ago but switching to it still results in the error:

 tlmgr: Local TeX Live (2022) is older than remote repository (2023).