mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-03-02 22:57:05 -05:00
docker build failing in macOS(Apple M1, macOS Ventura) #32
Labels
No labels
Desktop
Docker
Integration Request
Integration Request
OS: Linux
OS: Mobile
OS: Windows
UI/UX
blocked
bug
bug
core-team-only
documentation
duplicate
embed-widget
enhancement
feature request
github_actions
good first issue
investigating
needs info / can't replicate
possible bug
question
stage: specifications
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/anything-llm#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vikaskesamreddy on GitHub (Jun 14, 2023).
[+] Building 87.7s (6/21)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.47kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 299B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:jammy-20230522 3.4s
=> [base 1/7] FROM docker.io/library/ubuntu:jammy-20230522@sha256:ac58ff7fe25edc58bdf0067ca99df00014dbd032e2246d30a722fa348fd799a5 3.2s
=> => resolve docker.io/library/ubuntu:jammy-20230522@sha256:ac58ff7fe25edc58bdf0067ca99df00014dbd032e2246d30a722fa348fd799a5 0.0s
=> => sha256:77bdd217935d10f0e753ed84118e9b11d3ab0a66a82bdf322087354ccd833733 424B / 424B 0.0s
=> => sha256:2767693332e5523a2734b82f57d1a91510c92237912a96fec46352785e120b3f 2.32kB / 2.32kB 0.0s
=> => sha256:952b15bbc7fb957dead5972b258558130aeda588416c0a7a861e916fc08b36d7 27.35MB / 27.35MB 2.4s
=> => sha256:ac58ff7fe25edc58bdf0067ca99df00014dbd032e2246d30a722fa348fd799a5 1.13kB / 1.13kB 0.0s
=> => extracting sha256:952b15bbc7fb957dead5972b258558130aeda588416c0a7a861e916fc08b36d7 0.6s
=> [internal] load build context 0.0s
=> => transferring context: 487.47kB 0.0s
=> ERROR [base 2/7] RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-r 80.9s
.
.
.
.
.
#5 76.47 Selecting previously unselected package yarn.
#5 76.49 (Reading database ... 30669 files and directories currently installed.)
#5 76.49 Preparing to unpack yarn_1.22.19_all.deb ...
#5 76.49 Unpacking yarn (1.22.19-1) ...
#5 76.59 Setting up yarn (1.22.19-1) ...
#5 76.61 % Total % Received % Xferd Average Speed Time Time Time Current
#5 76.61 Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 26.9M 100 26.9M 0 0 7256k 0 0:00:03 0:00:03 --:--:-- 12.7M
#5 80.53 dpkg: error processing archive pandoc-3.1.3-1-amd64.deb (--install):
#5 80.53 package architecture (amd64) does not match system (arm64)
#5 80.54 Errors were encountered while processing:
#5 80.54 pandoc-3.1.3-1-amd64.deb
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends curl libgfortran5 python3 python3-pip tzdata netcat libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -yq --no-install-recommends nodejs && curl -LO https://github.com/yarnpkg/yarn/releases/download/v1.22.19/yarn_1.22.19_all.deb && dpkg -i yarn_1.22.19_all.deb && rm yarn_1.22.19_all.deb && curl -LO https://github.com/jgm/pandoc/releases/download/3.1.3/pandoc-3.1.3-1-amd64.deb && dpkg -i pandoc-3.1.3-1-amd64.deb && rm pandoc-3.1.3-1-amd64.deb && rm -rf /var/lib/apt/lists/* /usr/share/icons && dpkg-reconfigure -f noninteractive tzdata && python3 -m pip install --no-cache-dir virtualenv]: exit code: 1
@vikaskesamreddy commented on GitHub (Jun 14, 2023):
changed these lines " curl -LO https://github.com/jgm/pandoc/releases/download/3.1.3/pandoc-3.1.3-1-amd64.deb
&& dpkg -i pandoc-3.1.3-1-amd64.deb
&& rm pandoc-3.1.3-1-amd64.deb && "
and one more option chatgpt has given is to install docker for M1 silicon and change settings/preferences in docker
Switch Docker Engine to Linux/arm64:
Docker Desktop for Apple Silicon includes a built-in option to switch the Docker Engine to use the Linux/arm64 architecture, which is compatible with Apple M1.
Open Docker Desktop and click on the Docker icon in the menu bar.
Go to "Preferences" and navigate to the "Experimental Features" tab.
Enable the "Use Docker Compose V2" and "Buildx" options.
Under the "Buildx" section, click on "Manage experimental features" and enable the "linux/arm64" architecture.
Click on "Apply & Restart" to save the changes and restart Docker Desktop.