Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid docker compose and Dockerfile build fails on RUN apk add --no-cache git~=2.43.4 #6154

Open
okoeroo opened this issue Dec 28, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@okoeroo
Copy link

okoeroo commented Dec 28, 2024

Description

Error is the following:
=> ERROR [mermaid 3/3] RUN apk add --no-cache git~=2.43.4 && git config --add --system safe.directory /mermaid

Solved by removing the git version specification.

Steps to reproduce

git clone main
docker compose up

failure.

Screenshots

=> => extracting sha256:db3e2f2b60543c32c84a427cc2129966358695d5b298456169c12df7ee2fd1e0 0.0s
=> [mermaid 2/3] RUN corepack enable && corepack enable pnpm 1.2s
=> ERROR [mermaid 3/3] RUN apk add --no-cache git~=2.43.4 && git config --add --system safe.directory /mermaid 1.1s

[mermaid 3/3] RUN apk add --no-cache git~=2.43.4 && git config --add --system safe.directory /mermaid:
0.240 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
0.637 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
1.019 ERROR: unable to select packages:
1.020 git-2.43.5-r0:
[+] Running 0/1s: world[git2.43.4]
⠦ Service mermaid Building 18.6s
failed to solve: process "/bin/sh -c apk add --no-cache git
=2.43.4 && git config --add --system safe.directory /mermaid" did not complete successfully: exit code: 1

Code Sample

No response

Setup

  • Mermaid version: main (28 dec 2024)

Suggested Solutions

Remove git version in apk add

Additional Context

No response

@okoeroo okoeroo added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Dec 28, 2024
@ShortArrow
Copy link

Quickfix when run docs dev server on local docker

git clone https://github.com/mermaid-js/mermaid  -b develop
sed -i 's/~=2.43.4//' ./Dockerfile
sed -i -e 's/pnpm run --filter mermaid docs:dev:docker/pnpm install \&\& pnpm run --filter mermaid docs:dev:docker/' ./run
./run docs:dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

2 participants