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

[Build] dockerfile CPU fail with document #17810

Closed
foxnight2 opened this issue Oct 6, 2023 · 1 comment
Closed

[Build] dockerfile CPU fail with document #17810

foxnight2 opened this issue Oct 6, 2023 · 1 comment
Labels
build build issues; typically submitted using template

Comments

@foxnight2
Copy link

foxnight2 commented Oct 6, 2023

Describe the issue

Follow this
https://github.com/microsoft/onnxruntime/tree/main/dockerfiles#cpu

cd onnxruntime
docker build -t onnxruntime-source -f Dockerfile.source ..

Urgency

No response

Target platform

linux

Build script

docker build -t onnxruntime-source -f Dockerfile.source ..

Error / output

[+] Building 14.6s (9/12)                                                                                docker:default
 => [internal] load build definition from Dockerfile.source                                                        0.0s
 => => transferring dockerfile: 1.32kB                                                                             0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 72B                                                                                   0.0s
 => [internal] load metadata for mcr.microsoft.com/cbl-mariner/base/python:3                                       1.4s
 => CACHED [stage-0 1/5] FROM mcr.microsoft.com/cbl-mariner/base/python:3@sha256:6a1b03924d60b6de208e26a398887974  0.0s
 => [internal] load build context                                                                                  0.5s
 => => transferring context: 704.25kB                                                                              0.5s
 => CACHED [stage-0 2/5] ADD . /code                                                                               0.0s
 => CACHED [stage-0 3/5] RUN tdnf install -y tar ca-certificates build-essential python3-numpy cmake python3-setu  0.0s
 => CACHED [stage-0 4/5] RUN /code/dockerfiles/scripts/install_cmake.sh                                            0.0s
 => ERROR [stage-0 5/5] RUN cd /code && python3 -m pip install -r tools/ci_build/github/linux/docker/inference/x  12.7s
------
 > [stage-0 5/5] RUN cd /code && python3 -m pip install -r tools/ci_build/github/linux/docker/inference/x64/python/cpu/scripts/requirements.txt && /bin/bash ./build.sh --allow_running_as_root --skip_submodule_sync --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER):
2.434 Ignoring numpy: markers 'python_version >= "3.11"' don't match your environment
2.440 Collecting onnx
2.441   Cloning http://github.com/onnx/onnx.git (to revision fdefbe85ed9c362b95b9b401cd19db068a76141f) to /tmp/pip-install-t_76hx51/onnx_d3f1decb10aa42c79cda277bf2287f7c
2.445   ERROR: Error [Errno 2] No such file or directory: 'git' while executing command git version
2.445 ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?
------
Dockerfile.source:15
--------------------
  13 |
  14 |     # Prepare onnxruntime repository & build onnxruntime
  15 | >>> RUN cd /code && python3 -m pip install -r tools/ci_build/github/linux/docker/inference/x64/python/cpu/scripts/requirements.txt && /bin/bash ./build.sh --allow_running_as_root --skip_submodule_sync --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER)
  16 |
  17 |     FROM mcr.microsoft.com/cbl-mariner/base/python:3
--------------------
ERROR: failed to solve: process "/bin/sh -c cd /code && python3 -m pip install -r tools/ci_build/github/linux/docker/inference/x64/python/cpu/scripts/requirements.txt && /bin/bash ./build.sh --allow_running_as_root --skip_submodule_sync --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER)" did not complete successfully: exit code: 1

Visual Studio Version

No response

GCC / Compiler Version

No response

@foxnight2 foxnight2 added the build build issues; typically submitted using template label Oct 6, 2023
@foxnight2 foxnight2 changed the title [Build] [Build] dockerfile CPU fail with document Oct 6, 2023
@foxnight2 foxnight2 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2023
@foxnight2 foxnight2 reopened this Oct 6, 2023
@wschin
Copy link
Contributor

wschin commented Oct 6, 2023

Looks like a duplicate of #17781.

@foxnight2, let use #17781 to track and discuss to avoid mis-communication. I am going to close this one now. Thank you.

@wschin wschin closed this as completed Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template
Projects
None yet
Development

No branches or pull requests

2 participants