OWASP / OWASP/ASVS

docker build fails

Open
#3,104 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

_5.0 - Not blocker MAKEFILE
Dominant language
HTML
Stars
3.6k
Forks
832
Avg merge
7h 55m
Merged PRs (30d)
4

Description

I believe I followed the instructions in "Document Builder", "Document Compilation Instructions", but I get an error in step 3.

ERROR: failed to solve: process "/bin/sh -c /home/pandoc/.TinyTeX/bin/*/tlmgr path add" did not complete successfully: exit code: 127

macOS 15.4.1 (24E263)

❯ docker --version
Docker version 28.0.4, build b8034c0
❯ docker build ./docker --tag ghcr.io/owasp/asvs/documentbuilder:latest
[+] Building 100.8s (22/29)                                                                                            docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                   0.0s
 => => transferring dockerfile: 4.68kB                                                                                                 0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 44)                                                        0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 61)                                                        0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 90)                                                        0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 100)                                                       0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 145)                                                       0.0s
 => [internal] load metadata for docker.io/library/alpine:3                                                                            5.2s
 => [auth] library/alpine:pull token for registry-1.docker.io                                                                          0.0s
 => [internal] load .dockerignore                                                                                                      0.0s
 => => transferring context: 2B                                                                                                        0.0s
 => [base 1/2] FROM docker.io/library/alpine:3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c                 0.4s
 => => resolve docker.io/library/alpine:3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c                      0.0s
 => => sha256:6e771e15690e2fabf2332d3a3b744495411d6e0b00b2aea64419b58b0066cf81 3.99MB / 3.99MB                                         0.3s
 => => extracting sha256:6e771e15690e2fabf2332d3a3b744495411d6e0b00b2aea64419b58b0066cf81                                              0.0s
 => [base 2/2] RUN apk add --update     alpine-sdk     fontconfig     font-noto-cjk     freetype     lua5.3     perl     bash     pyt  6.3s
 => [pandoc_base 1/8] RUN python3 -m venv /root/.py-env --system-site-packages                                                         1.2s 
 => [font_base 1/5] WORKDIR /fonts                                                                                                     0.0s 
 => [font_base 2/5] RUN for font in source-sans source-serif source-code-pro; do  git_tarball_url="https://www.github.com/adobe-fonts  7.7s 
 => [pandoc_base 2/8] RUN /root/.py-env/bin/pip install --upgrade pip                                                                  1.1s 
 => [pandoc_base 3/8] RUN /root/.py-env/bin/pip install dicttoxml2 setuptools==69.0.3                                                  1.3s 
 => [pandoc_base 4/8] RUN adduser -s /bin/bash -g "pandoc" -D pandoc                                                                   0.1s 
 => [pandoc_base 5/8] RUN curl --output /tmp/pandoc.tar.gz -L https://github.com/jgm/pandoc/releases/download/2.19.2/pandoc-2.19.2-li  1.8s
 => [pandoc_base 6/8] RUN pandoc --version                                                                                             0.1s
 => [pandoc_base 7/8] WORKDIR /home/pandoc                                                                                             0.0s
 => [pandoc_base 8/8] RUN curl --output /tmp/lua-filters.tar.gz -L https://github.com/pandoc/lua-filters/releases/latest/download/lua  1.3s
 => [tinytex_base 1/2] RUN curl -L "https://raw.githubusercontent.com/rstudio/tinytex/v0.45/tools/install-bin-unix.sh" | sed -e 's/wg  0.4s 
 => [tinytex_base 2/2] RUN for i in 1 2 3 4 5; do bash -c "./install-unx.sh" && break || sleep 15; done && rm install-unx.sh          81.4s 
 => [font_base 3/5] RUN mkdir adobe-fonts                                                                                              0.1s 
 => [font_base 4/5] RUN find $PWD/ -name "*.ttf" -exec install -m644 {} adobe-fonts/ ; || return 1                                     0.1s 
 => [font_base 5/5] RUN rm -rf $PWD/source*                                                                                            0.1s 
 => ERROR [latex_base 1/4] RUN /home/pandoc/.TinyTeX/bin/*/tlmgr path add                                                              0.1s 
------                                                                                                                                      
 > [latex_base 1/4] RUN /home/pandoc/.TinyTeX/bin/*/tlmgr path add:                                                                         
0.109 /bin/sh: /home/pandoc/.TinyTeX/bin/*/tlmgr: not found                                                                                 
------                                                                                                                                      
Dockerfile:103                                                                                                                              
--------------------
 101 |     
 102 |     # add tlmgr to path
 103 | >>> RUN /home/pandoc/.TinyTeX/bin/*/tlmgr path add
 104 |     
 105 |     # verify tlmgr version and add packages needed to build the documents
--------------------
ERROR: failed to solve: process "/bin/sh -c /home/pandoc/.TinyTeX/bin/*/tlmgr path add" did not complete successfully: exit code: 127

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with docker/Dockerfile around line 103 and inspect the preceding TinyTeX installation stage, then reproduce the failure with docker build ./docker --tag ghcr.io/owasp/asvs/documentbuilder:latest. Trace why the expected tlmgr path is absent; done means the image builds successfully past this step and the later document-builder verification remains functional.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.