Skip to content

Commit 3b4ba61

Browse files
authored
Merge pull request #2035 from rtg0795/r2.7
Add NVIDIA repo keys
2 parents b27bc32 + dd083f9 commit 3b4ba61

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

tensorflow_serving/tools/docker/Dockerfile.devel-gpu

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ ENV CUDNN_VERSION=8.1.0.77
2424
ENV TF_TENSORRT_VERSION=7.2.2
2525
ENV CUDA=11.2
2626

27-
RUN apt-get update && apt-get install -y --no-install-recommends \
27+
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub && \
28+
apt-get update && apt-get install -y --no-install-recommends \
2829
automake \
2930
build-essential \
3031
ca-certificates \
@@ -67,8 +68,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
6768
rm /usr/lib/x86_64-linux-gnu/libcudnn_static_v8.a
6869

6970
# NOTE: libnvinfer uses cuda11.1 versions
70-
RUN apt-get update && \
71-
apt-get install -y --no-install-recommends libnvinfer7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
71+
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub && \
72+
echo "deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/tensorRT.list && \
73+
apt-get update && \
74+
apt-get install -y --no-install-recommends libnvinfer7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
7275
libnvinfer-dev=${TF_TENSORRT_VERSION}-1+cuda11.1 \
7376
libnvinfer-plugin-dev=${TF_TENSORRT_VERSION}-1+cuda11.1 \
7477
libnvinfer-plugin7=${TF_TENSORRT_VERSION}-1+cuda11.1 \

tensorflow_serving/tools/docker/Dockerfile.gpu

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ ENV TF_TENSORRT_VERSION=7.2.2
3030
ENV CUDA=11.2
3131
ENV LD_LIBRARY_PATH /usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
3232

33-
RUN apt-get update && apt-get install -y --no-install-recommends \
33+
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub && \
34+
apt-get update && apt-get install -y --no-install-recommends \
3435
ca-certificates \
3536
cuda-command-line-tools-11-2 \
3637
libcublas-11-2 \
@@ -45,8 +46,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4546
apt-get clean && \
4647
rm -rf /var/lib/apt/lists/*
4748

48-
# We don't install libnvinfer-dev since we don't need to build against TensorRT
49-
RUN apt-get update && \
49+
# We don't install libnvinfer-dev since we don't need to build against
50+
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub && \
51+
echo "deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/tensorRT.list && \
52+
apt-get update && \
5053
apt-get install -y --no-install-recommends libnvinfer7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
5154
libnvinfer-plugin7=${TF_TENSORRT_VERSION}-1+cuda11.1 \
5255
&& apt-get clean \

0 commit comments

Comments
 (0)