ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Feature Request]: Provide docker image for Mac with ARM

Open yingfeng opened this issue 10 months ago • 11 comments

Is there an existing issue for the same feature request?

  • [X] I have checked the existing issues.

Is your feature request related to a problem?

No response

Describe the feature you'd like

There are several builtin models depending on PyTorch, ONNXRuntime,...,etc, which requires extra works for migrating.

Describe implementation you've considered

No response

Documentation, adoption, use case

No response

Additional information

No response

yingfeng avatar Apr 18 '24 09:04 yingfeng

@KevinHuSh pls give some instructions to build mac images.

yingfeng avatar Apr 18 '24 09:04 yingfeng

ragflow/Dockerfile.scratch has every necessary steps to build an image.

KevinHuSh avatar Apr 18 '24 10:04 KevinHuSh

Hi. I tried using Dockerfile.scratch and the image was not built successfully. Would you mind writing detailed instructions on how to set up on Mac with ARM?

1of13 avatar Apr 21 '24 17:04 1of13

The Dockerfile.scratch file has many issues. For example, it points to the wrong URL for Miniconda3. It should be something like this: https://repo.anaconda.com/miniconda/Miniconda3-py311_24.3.0-0-MacOSX-arm64.sh, instead of the "... latest-Linux-x86_64 ..." used in the script. The latest version of Miniconda3 uses Python3.12, and consequently, some of the libraries included in the requirements are incompatible, as they require Python3.11 at most.

1of13 avatar Apr 22 '24 00:04 1of13

I tried to run it on Oracle's ARM host and rebuild docker image. I removed some packages which isn't supported on ARM platform such as Aspose.Slides and N-card. Therefore, Some features won't work any more, for example, Powerpoint file isn't support any more. Updated requirements.txt and Dockerfile.scratch are attached. requirements.txt Dockerfile.scratch.txt

xbl916 avatar Apr 25 '24 13:04 xbl916

I tried to run it on Oracle's ARM host and rebuild docker image. I removed some packages which isn't supported on ARM platform such as Aspose.Slides and N-card. Therefore, Some features won't work any more, for example, Powerpoint file isn't support any more. Updated requirements.txt and Dockerfile.scratch are attached. requirements.txt Dockerfile.scratch.txt

it works!

zhengwu119 avatar May 04 '24 14:05 zhengwu119

I tried to run it on Oracle's ARM host and rebuild docker image. I removed some packages which isn't supported on ARM platform such as Aspose.Slides and N-card. Therefore, Some features won't work any more, for example, Powerpoint file isn't support any more. Updated requirements.txt and Dockerfile.scratch are attached. requirements.txt Dockerfile.scratch.txt

Excuse me. How to run zhe docker image with the changed files? I just known how to use docker compose run the program in the docker folder

qmy777 avatar Jun 09 '24 03:06 qmy777

does it support mps on Mac M1 chip?

chminsc avatar Jul 14 '24 13:07 chminsc

Having trouble running ragflow on M3 Silicon Mac or even building the docker: docker build --no-cache -t infiniflow/ragflow:dev -f Dockerfile.arm .

Output:

Dockerfile.arm:7
--------------------
   6 |     COPY requirements_arm.txt /ragflow/requirements.txt
   7 | >>> RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&\
   8 | >>> python -c "import nltk;nltk.download('punkt');nltk.download('wordnet')"
   9 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&python -c \"import nltk;nltk.download('punkt');nltk.download('wordnet')\"" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/fvay1k2wtt4fzbb2yijrj0r2t

FellowTraveler avatar Aug 01 '24 07:08 FellowTraveler

Has the issue been resolved?

dorhunova avatar Aug 19 '24 10:08 dorhunova

Having trouble running ragflow on M3 Silicon Mac or even building the docker: docker build --no-cache -t infiniflow/ragflow:dev -f Dockerfile.arm .

Output:

Dockerfile.arm:7
--------------------
   6 |     COPY requirements_arm.txt /ragflow/requirements.txt
   7 | >>> RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&\
   8 | >>> python -c "import nltk;nltk.download('punkt');nltk.download('wordnet')"
   9 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&python -c \"import nltk;nltk.download('punkt');nltk.download('wordnet')\"" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/fvay1k2wtt4fzbb2yijrj0r2t

same here, and

ERROR [linux/amd64 internal] load metadata for docker.io/library/python:3.11

any idea ?

yangboz avatar Aug 21 '24 09:08 yangboz