Skip to content

Commit 79904bf

Browse files
committed
refactor(//docker): Updating bazel version in dockerfiles
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 87f1506 commit 79904bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN rm -rf /opt/torch-tensorrt /usr/bin/bazel
1010

1111
ARG ARCH="x86_64"
1212
ARG TARGETARCH="amd64"
13-
ARG BAZEL_VERSION=4.0.0
13+
ARG BAZEL_VERSION=4.2.1
1414

1515
RUN [[ "$TARGETARCH" == "amd64" ]] && ARCH="x86_64" || ARCH="${TARGETARCH}" \
1616
&& wget -q https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-linux-${ARCH} -O /usr/bin/bazel \

docker/Dockerfile.docs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM nvcr.io/nvidia/tensorrt:21.02-py3
33
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
44
RUN echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
55

6-
RUN apt-get update && apt-get install -y bazel-4.0.0 clang-format-9 libjpeg9 libjpeg9-dev
7-
RUN ln -s /usr/bin/bazel-4.0.0 /usr/bin/bazel
6+
RUN apt-get update && apt-get install -y bazel-4.2.1 clang-format-9 libjpeg9 libjpeg9-dev
7+
RUN ln -s /usr/bin/bazel-4.2.1 /usr/bin/bazel
88
RUN ln -s $(which clang-format-9) /usr/bin/clang-format
99

1010
# Workaround for bazel expecting both static and shared versions, we only use shared libraries inside container

0 commit comments

Comments
 (0)