From 54c8b93a0196f7092dbb5998304520040fdde0b6 Mon Sep 17 00:00:00 2001 From: Joe Lin Date: Tue, 5 Mar 2024 08:50:58 +0800 Subject: [PATCH] Update examples/cpu/inference/python/llm/README.md docker build behind a corporate HTTP proxy makes curl failure so add more explain when user environment needs proxy. 215.5 curl: (28) Failed to connect to repo.anaconda.com port 443 after 214840 ms: Connection timed out ------ Dockerfile:39 -------------------- 38 | 39 | >>> RUN curl -fsSL -v -o miniconda.sh -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ 40 | >>> bash miniconda.sh -b -p ./miniconda3 && \ 41 | >>> rm miniconda.sh && \ 42 | >>> echo "source ~/miniconda3/bin/activate" >> ./.bashrc 43 | -------------------- --- examples/cpu/inference/python/llm/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/cpu/inference/python/llm/README.md b/examples/cpu/inference/python/llm/README.md index 4180ebf0d..dae1ded56 100644 --- a/examples/cpu/inference/python/llm/README.md +++ b/examples/cpu/inference/python/llm/README.md @@ -82,6 +82,10 @@ git submodule update --init --recursive # Build an image with the provided Dockerfile by compiling IntelĀ® Extension for PyTorch\* from source DOCKER_BUILDKIT=1 docker build -f examples/cpu/inference/python/llm/Dockerfile --build-arg COMPILE=ON -t ipex-llm:main . +# Working behind a corporate HTTP proxy makes everything harder, try add http/https proxy by build args +DOCKER_BUILDKIT=1 docker build -f examples/cpu/inference/python/llm/Dockerfile --build-arg COMPILE=ON \ + --build-arg http_proxy=: --build-arg https_proxy=: \ + -t ipex-llm:main . # Run the container with command below docker run --rm -it --privileged ipex-llm:main bash