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

I use Macbook M1 the docker image is not support my system. #60

Closed
jirayudech opened this issue Apr 24, 2023 · 8 comments
Closed

I use Macbook M1 the docker image is not support my system. #60

jirayudech opened this issue Apr 24, 2023 · 8 comments
Labels
closed | duplicate This issue or pull request already exists.

Comments

@jirayudech
Copy link

% docker compose up -d
[+] Running 0/2
⠴ backend Pulling 2.4s
⠴ frontend Pulling 2.4s
no matching manifest for linux/arm64/v8 in the manifest list entries

@bigr00
Copy link

bigr00 commented Apr 24, 2023

To get it to work on M1, then we have to change the Docker Compose file to build the images locally, not fetch them from Github.
Also, we have to change the Dockerfile-backend FROM statement to this:
FROM --platform=linux/arm64 python:3.10-slim-buster AS base

docker-compose.yml:

version: "3.8"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "80:3000"
environment:
NEXT_PUBLIC_API_URI: http://backend:5000
env_file:
- .env
depends_on:
- backend
backend:
build:
context: .
dockerfile: Dockerfile-backend
ports:
- "5000:5000"
env_file:
- .env

@bigr00
Copy link

bigr00 commented Apr 24, 2023

Seems that building the Docker images gets stuck at this step:

=> [base 7/12] RUN pip install --no-cache-dir -r requirements.txt 114.9s
=> => # [end of output]
=> => # note: This error originates from a subprocess, and is likely not a problem with pip.
=> => # ERROR: Failed building wheel for pyllamacpp
=> => # Building wheel for duckdb (setup.py): started
=> => # Building wheel for duckdb (setup.py): still running...

@Josh-XT
Copy link
Owner

Josh-XT commented Apr 24, 2023

Seems that building the Docker images gets stuck at this step:

=> [base 7/12] RUN pip install --no-cache-dir -r requirements.txt 114.9s
=> => # [end of output]
=> => # note: This error originates from a subprocess, and is likely not a problem with pip.
=> => # ERROR: Failed building wheel for pyllamacpp
=> => # Building wheel for duckdb (setup.py): started
=> => # Building wheel for duckdb (setup.py): still running...

Looks like pyllamacpp may not work on Mac? I don't see why it wouldn't or why docker would operate differently in Mac than Linux.

@bigr00
Copy link

bigr00 commented Apr 24, 2023

After removing pyllamaccp and deleting the Python file, it finally builds.

@bigr00
Copy link

bigr00 commented Apr 24, 2023

There seems to be a clash in Mac with the 5000 port as well for backend.

@Josh-XT
Copy link
Owner

Josh-XT commented Apr 24, 2023

Please see #67 and pull the latest.

@Josh-XT Josh-XT added type | report | incompatibility Incompatibility with an expectedly compatible suite (OS, tool, browser, etc). reply needed | please retest Waiting for a retest from the creator of the issue. If not responded to in a week, may be closed. labels Apr 24, 2023
@Josh-XT
Copy link
Owner

Josh-XT commented Apr 24, 2023

If you've already tried running with docker-compose, you may need to do the following after pulling latest changes:

docker-compose down
docker-compose -f docker-compose-mac.yml down

Then do:

docker-compose -f docker-compose-mac.yml up --build -d

@Josh-XT
Copy link
Owner

Josh-XT commented Apr 24, 2023

Please continue this conversation in #61 - we have some more information over there and there is a lot of overlap with this issue.

@Josh-XT Josh-XT closed this as completed Apr 24, 2023
@Josh-XT Josh-XT added closed | duplicate This issue or pull request already exists. and removed type | report | incompatibility Incompatibility with an expectedly compatible suite (OS, tool, browser, etc). reply needed | please retest Waiting for a retest from the creator of the issue. If not responded to in a week, may be closed. labels Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed | duplicate This issue or pull request already exists.
Projects
None yet
Development

No branches or pull requests

3 participants