Skip to content

Commit 4300005

Browse files
DevakiBolleneniDevakiBolleneni
andauthored
Patch TF Inference Images (#5610)
* Patch TF 2.19 INF SM Image * Patch TF 2.19 INF SM Image * Patch TF 2.19 INF SM Image * Patch TF 2.19 INF SM Image * Patch TF 2.19 INF SM Image * Patch TF 2.19 INF ARM64 Image * revert toml file --------- Co-authored-by: DevakiBolleneni <devakib@amazon.com>
1 parent f0abef0 commit 4300005

12 files changed

+48
-14
lines changed

tensorflow/inference/buildspec-2-19-sm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ framework: &FRAMEWORK tensorflow
55
version: &VERSION 2.19.0
66
short_version: &SHORT_VERSION 2.19
77
arch_type: x86
8-
autopatch_build: "True"
8+
#autopatch_build: "True"
99

1010
repository_info:
1111
inference_repository: &INFERENCE_REPOSITORY

tensorflow/inference/buildspec-arm64-2-19-sm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ framework: &FRAMEWORK tensorflow
55
version: &VERSION 2.19.0
66
short_version: &SHORT_VERSION 2.19
77
arch_type: arm64
8-
autopatch_build: "True"
8+
#autopatch_build: "True"
99

1010
repository_info:
1111
inference_repository: &INFERENCE_REPOSITORY

tensorflow/inference/docker/2.19/py3/Dockerfile.arm64.cpu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ RUN wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSIO
8686

8787
RUN ${PIP} --no-cache-dir install --upgrade \
8888
pip \
89-
setuptools
89+
"setuptools>=75.0.0"
9090

9191
# cython, falcon, gunicorn, grpc
9292
RUN ${PIP} install --no-cache-dir \
@@ -96,7 +96,7 @@ RUN ${PIP} install --no-cache-dir \
9696
gevent \
9797
requests \
9898
grpcio \
99-
"protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3" \
99+
"protobuf==6.33.4" \
100100
packaging \
101101
# using --no-dependencies to avoid installing tensorflow binary
102102
&& ${PIP} install --no-dependencies --no-cache-dir \

tensorflow/inference/docker/2.19/py3/Dockerfile.cpu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ RUN apt-get update \
9696

9797
RUN ${PIP} --no-cache-dir install --upgrade \
9898
pip \
99-
setuptools
99+
"setuptools>=75.0.0"
100100

101101
RUN ${PIP} install --no-cache-dir \
102102
"awscli<2" \
@@ -105,7 +105,7 @@ RUN ${PIP} install --no-cache-dir \
105105
gevent \
106106
requests \
107107
grpcio \
108-
"protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3" \
108+
"protobuf==6.33.4" \
109109
packaging \
110110
# using --no-dependencies to avoid installing tensorflow binary
111111
&& ${PIP} install --no-dependencies --no-cache-dir \

tensorflow/inference/docker/2.19/py3/Dockerfile.sagemaker.arm64.cpu.core_packages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"version_specifier":">=1.24.3,<2.0"
1414
},
1515
"protobuf":{
16-
"version_specifier":">=3.20.3,<6.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=4.21.0"
16+
"version_specifier":">=3.20.3,<7.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=4.21.0"
1717
},
1818
"falcon":{
1919
"version_specifier":"==3.1.0"
2020
},
2121
"gunicorn":{
2222
"version_specifier":">=22.0.0"
2323
}
24-
}
24+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"85151": "Protocol Buffers (protobuf) vulnerability CVE-85151 affecting versions prior to 6.33.5. Using latest available version 6.33.4 as 6.33.5 is not yet released on PyPI. Will upgrade when 6.33.5 becomes available."
3+
}

tensorflow/inference/docker/2.19/py3/Dockerfile.sagemaker.cpu.core_packages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"protobuf":{
3-
"version_specifier": ">=3.20.3,<5.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=4.21.0"
3+
"version_specifier": ">=3.20.3,<7.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=4.21.0"
44
},
55
"cython":{
66
"version_specifier": "<3.0"
@@ -21,4 +21,4 @@
2121
"urllib3": {
2222
"version_specifier": ">=2.0.7"
2323
}
24-
}
24+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"85151": "Protocol Buffers (protobuf) vulnerability CVE-85151 affecting versions prior to 6.33.5. Using latest available version 6.33.4 as 6.33.5 is not yet released on PyPI. Will upgrade when 6.33.5 becomes available."
3+
}

tensorflow/inference/docker/2.19/py3/cu122/Dockerfile.gpu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ RUN apt-get update \
145145

146146
RUN ${PIP} --no-cache-dir install --upgrade \
147147
pip \
148-
setuptools
148+
"setuptools>=75.0.0"
149149

150150
# Upgrade libsasl2-2 for fixing cyrus-sasl2 related CVE
151151
RUN apt-get install -y --only-upgrade libsasl2-2
@@ -182,7 +182,7 @@ RUN ${PIP} install -U --no-cache-dir \
182182
gevent \
183183
requests \
184184
grpcio \
185-
"protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3" \
185+
"protobuf==6.33.4" \
186186
packaging \
187187
# using --no-dependencies to avoid installing tensorflow binary
188188
&& ${PIP} install --no-dependencies --no-cache-dir \

tensorflow/inference/docker/2.19/py3/cu122/Dockerfile.sagemaker.gpu.core_packages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"protobuf":{
3-
"version_specifier": ">=3.20.3,<5.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=4.21.0"
3+
"version_specifier": ">=3.20.3,<7.0.0dev,!=4.21.5,!=4.21.4,!=4.21.3,!=4.21.2,!=4.21.1,!=4.21.0"
44
},
55
"cython":{
66
"version_specifier": "<3.0"
@@ -21,4 +21,4 @@
2121
"urllib3": {
2222
"version_specifier": ">=2.0.7"
2323
}
24-
}
24+
}

0 commit comments

Comments
 (0)