Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions t/triton-inference-server/onnxruntime_backend.patch
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,34 @@ index bf374cd..c53c6b9 100644
COMMAND docker create --name onnxruntime_backend_ort ${TRITON_ONNXRUNTIME_DOCKER_IMAGE}
COMMAND rm -fr onnxruntime
diff --git a/tools/gen_ort_dockerfile.py b/tools/gen_ort_dockerfile.py
index 13f38ac..7f8447d 100755
index 13f38ac..4f5071c 100755
--- a/tools/gen_ort_dockerfile.py
+++ b/tools/gen_ort_dockerfile.py
@@ -126,26 +126,33 @@ ENV PIP_BREAK_SYSTEM_PACKAGES=1
@@ -126,26 +126,32 @@ ENV PIP_BREAK_SYSTEM_PACKAGES=1
df += """
# The manylinux container defaults to Python 3.7, but some feature installation
# requires a higher version.
-ARG PYVER=3.12
-ENV PYTHONPATH=/opt/python/v
-RUN ln -sf /opt/python/cp${PYVER/./}* ${PYTHONPATH}

-ENV PYBIN=${PYTHONPATH}/bin
-ENV PYTHON_BIN_PATH=${PYBIN}/python${PYVER} \
- PATH=${PYBIN}:${PATH}
+RUN yum install -y wget && \
+ dnf install -y https://mirror.stream.centos.org/9-stream/BaseOS/`arch`/os/Packages/centos-gpg-keys-9.0-24.el9.noarch.rpm \
+ https://mirror.stream.centos.org/9-stream/BaseOS/`arch`/os/Packages/centos-stream-repos-9.0-24.el9.noarch.rpm \
+ dnf install -y https://mirror.stream.centos.org/9-stream/BaseOS/`arch`/os/Packages/centos-gpg-keys-9.0-26.el9.noarch.rpm \
+ https://mirror.stream.centos.org/9-stream/BaseOS/`arch`/os/Packages/centos-stream-repos-9.0-26.el9.noarch.rpm \
+ https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
+ dnf config-manager --set-enabled crb &&\
+ dnf install gperf libarchive-devel numactl-devel readline-devel libusb patch -y && \
+ dnf remove -y centos-gpg-keys-9.0-24.el9.noarch centos-stream-repos-9.0-24.el9.noarch

+ dnf remove -y centos-gpg-keys-9.0-26.el9.noarch centos-stream-repos-9.0-26.el9.noarch
RUN yum install -y \\
ca-certificates \\
- curl \\
git \\
gnupg \\
- gnupg1 \
+ gnupg1 \\
openssl-devel \\
- python3-pip \
+ python3.12 \\
Expand All @@ -62,12 +61,11 @@ index 13f38ac..7f8447d 100755
+ cmake \\
+ g++ \\
zip

-RUN pip3 install patchelf==0.17.2
+RUN ln -sf $(which python3.12) /usr/bin/python3 && ln -sf $(which pip3.12) /usr/bin/pip3 && ln -sf $(which pip3.12) /usr/bin/pip
+RUN pip3 install patchelf==0.17.2 cmake packaging wheel
+
"""
else:
if os.getenv("CCACHE_REMOTE_ONLY") and os.getenv("CCACHE_REMOTE_STORAGE"):