@@ -94,6 +94,7 @@ def dockerfile_for_linux(output_file):
94
94
df += """
95
95
# Ensure apt-get won't prompt for selecting options
96
96
ENV DEBIAN_FRONTEND=noninteractive
97
+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
97
98
98
99
# The Onnx Runtime dockerfile is the collection of steps in
99
100
# https://github.com/microsoft/onnxruntime/tree/master/dockerfiles
@@ -153,7 +154,7 @@ def dockerfile_for_linux(output_file):
153
154
&& . /etc/os-release \\
154
155
&& echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ $UBUNTU_CODENAME main" | tee /etc/apt/sources.list.d/kitware.list >/dev/null \\
155
156
&& apt-get update -q=2 \\
156
- && apt-get install -y --no-install-recommends cmake=3.27.7 * cmake-data=3.27.7 * \\
157
+ && apt-get install -y --no-install-recommends cmake=3.28.3 * cmake-data=3.28.3 * \\
157
158
&& cmake --version
158
159
159
160
"""
@@ -185,10 +186,10 @@ def dockerfile_for_linux(output_file):
185
186
df += """
186
187
# Step 1: Download and install core components
187
188
# Ref: https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-linux.html#step-1-download-and-install-the-openvino-core-components
188
- RUN curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/${OPENVINO_SHORT_VERSION}/linux/l_openvino_toolkit_ubuntu22_ ${OPENVINO_VERSION_WITH_BUILD_NUMBER}_x86_64.tgz --output openvino_${ONNXRUNTIME_OPENVINO_VERSION}.tgz && \
189
+ RUN curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/${OPENVINO_SHORT_VERSION}/linux/l_openvino_toolkit_ubuntu24_ ${OPENVINO_VERSION_WITH_BUILD_NUMBER}_x86_64.tgz --output openvino_${ONNXRUNTIME_OPENVINO_VERSION}.tgz && \
189
190
tar -xf openvino_${ONNXRUNTIME_OPENVINO_VERSION}.tgz && \
190
191
mkdir -p ${INTEL_OPENVINO_DIR} && \
191
- mv l_openvino_toolkit_ubuntu22_ ${OPENVINO_VERSION_WITH_BUILD_NUMBER}_x86_64/* ${INTEL_OPENVINO_DIR} && \
192
+ mv l_openvino_toolkit_ubuntu24_ ${OPENVINO_VERSION_WITH_BUILD_NUMBER}_x86_64/* ${INTEL_OPENVINO_DIR} && \
192
193
rm openvino_${ONNXRUNTIME_OPENVINO_VERSION}.tgz && \
193
194
(cd ${INTEL_OPENVINO_DIR}/install_dependencies && \
194
195
./install_openvino_dependencies.sh -y) && \
@@ -197,9 +198,9 @@ def dockerfile_for_linux(output_file):
197
198
# Step 2: Configure the environment
198
199
# Ref: https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-linux.html#step-2-configure-the-environment
199
200
ENV OpenVINO_DIR=$INTEL_OPENVINO_DIR/runtime/cmake
200
- ENV LD_LIBRARY_PATH $INTEL_OPENVINO_DIR/runtime/lib/intel64:$LD_LIBRARY_PATH
201
+ ENV LD_LIBRARY_PATH= $INTEL_OPENVINO_DIR/runtime/lib/intel64:$LD_LIBRARY_PATH
201
202
ENV PKG_CONFIG_PATH=$INTEL_OPENVINO_DIR/runtime/lib/intel64/pkgconfig
202
- ENV PYTHONPATH $INTEL_OPENVINO_DIR/python/python3.10 :$INTEL_OPENVINO_DIR/python/python3:$PYTHONPATH
203
+ ENV PYTHONPATH= $INTEL_OPENVINO_DIR/python/python3.12 :$INTEL_OPENVINO_DIR/python/python3:$PYTHONPATH
203
204
"""
204
205
205
206
## TEMPORARY: Using the tensorrt-8.0 branch until ORT 1.9 release to enable ORT backend with TRT 8.0 support.
@@ -287,7 +288,7 @@ def dockerfile_for_linux(output_file):
287
288
df += """
288
289
WORKDIR /workspace/onnxruntime
289
290
ARG COMMON_BUILD_ARGS="--config ${{ONNXRUNTIME_BUILD_CONFIG}} --skip_submodule_sync --parallel --build_shared_lib \
290
- --build_dir /workspace/build --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES='{}' "
291
+ --compile_no_warning_as_error -- build_dir /workspace/build --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES='{}' "
291
292
""" .format (
292
293
cuda_archs
293
294
)
@@ -358,7 +359,7 @@ def dockerfile_for_linux(output_file):
358
359
RUN cp /workspace/onnxruntime/include/onnxruntime/core/providers/openvino/openvino_provider_factory.h \
359
360
/opt/onnxruntime/include
360
361
361
- RUN apt-get update && apt-get install -y --no-install-recommends libtbb2
362
+ RUN apt-get update && apt-get install -y --no-install-recommends libtbb12
362
363
363
364
RUN cp /workspace/build/${ONNXRUNTIME_BUILD_CONFIG}/libonnxruntime_providers_openvino.so \
364
365
/opt/onnxruntime/lib && \
0 commit comments