Skip to content

Commit

Permalink
Merged PR 24111: Remove external reference to Docker images
Browse files Browse the repository at this point in the history
The reference to docker.io triggers a security warning (https://eng.ms/docs/more/containers-secure-supply-chain) making our pipelines flashing orange, which cover the real status of regression testing. This PR simply replaced the external reference to an internal mirror (https://eng.ms/docs/more/containers-secure-supply-chain/approved-images).
  • Loading branch information
Roman Grundkiewicz committed May 31, 2022
1 parent 042ed8f commit c5081df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contrib/triton-aml/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# It is recommended to use a machine which supports CUDA to build this image.
FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 AS BUILDER
# Remove 'mcr.microsoft.com/mirror/nvcr/' below if you want to pull from the official NVIDIA image
FROM mcr.microsoft.com/mirror/nvcr/nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 AS BUILDER
RUN apt-get update --fix-missing
RUN apt-get install -y curl git autoconf automake libtool curl make g++ unzip cmake build-essential cpio
RUN apt-get -y clean && \
Expand Down Expand Up @@ -58,7 +59,8 @@ RUN cmake .. -DCOMPILE_CPU=on -DCOMPILE_CUDA=on -DUSE_SENTENCEPIECE=on -DUSE_STA
RUN make -j $(grep -c ^processor /proc/cpuinfo)

# build cmarian static library
FROM nvcr.io/nvidia/tritonserver:20.09-py3
# Replace 'mcr.microsoft.com/mirror/nvcr/' with 'nvcr.io/' below if you want to pull from the official NVIDIA image. Tested using 'nvidia/tritonserver:20.09-py3'.
FROM mcr.microsoft.com/mirror/nvcr/nvidia/tritonserver:22.03-py3
RUN mkdir -p /marian-dev/build/src/3rd_party/sentencepiece/src
COPY --from=BUILDER /usr/lib/libprotobuf.a /usr/lib
COPY --from=BUILDER /usr/lib/libboost_system.a /usr/lib
Expand Down

0 comments on commit c5081df

Please sign in to comment.