From ddc0cee6c818afc4191fb8e824e324bc79f9371b Mon Sep 17 00:00:00 2001 From: Yanxuan Liu Date: Wed, 15 Jun 2022 18:08:18 +0800 Subject: [PATCH 1/2] changed ngc download url and folder structure Signed-off-by: Yanxuan Liu --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1b022fc92e..85752497f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,11 +38,11 @@ RUN BUILD_MONAI=1 FORCE_CUDA=1 python setup.py develop \ # NGC Client WORKDIR /opt/tools -ARG NGC_CLI_URI="https://ngc.nvidia.com/downloads/ngccli_cat_linux.zip" -RUN wget -q ${NGC_CLI_URI} && \ - unzip ngccli_cat_linux.zip && chmod u+x ngc && \ - md5sum -c ngc.md5 && \ - rm -rf ngccli_cat_linux.zip ngc.md5 +ARG NGC_CLI_URI="https://ngc.nvidia.com/downloads/ngccli_linux.zip" +RUN wget -q ${NGC_CLI_URI} && unzip ngccli_linux.zip && chmod u+x ngc-cli/ngc && \ + find ngc-cli/ -type f -exec md5sum {} + | LC_ALL=C sort | md5sum -c ngc-cli.md5 && \ + cp ngc-cli/ngc ngc && \ + rm -rf ngccli_linux.zip ngc-cli.md5 RUN apt-get update \ && DEBIAN_FRONTEND="noninteractive" apt-get install -y libopenslide0 \ && rm -rf /var/lib/apt/lists/* From d11bc149cc4028ed4cb67b89fb597a03bed6fec2 Mon Sep 17 00:00:00 2001 From: Yanxuan Liu Date: Thu, 16 Jun 2022 17:24:17 +0800 Subject: [PATCH 2/2] added ngc-cli to PATH Signed-off-by: Yanxuan Liu --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 85752497f9..aee64b0edc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,8 +41,8 @@ WORKDIR /opt/tools ARG NGC_CLI_URI="https://ngc.nvidia.com/downloads/ngccli_linux.zip" RUN wget -q ${NGC_CLI_URI} && unzip ngccli_linux.zip && chmod u+x ngc-cli/ngc && \ find ngc-cli/ -type f -exec md5sum {} + | LC_ALL=C sort | md5sum -c ngc-cli.md5 && \ - cp ngc-cli/ngc ngc && \ rm -rf ngccli_linux.zip ngc-cli.md5 +ENV PATH=${PATH}:/opt/tools:/opt/tools/ngc-cli RUN apt-get update \ && DEBIAN_FRONTEND="noninteractive" apt-get install -y libopenslide0 \ && rm -rf /var/lib/apt/lists/*