ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=20.04 |
ADD file:4809da414c2d478b4d991cbdaa2df457f2b3d07d0ff6cf673f09a66f90833e81 in / |
CMD ["/bin/bash"] |
ENV NVARCH=x86_64 |
ENV NVIDIA_REQUIRE_CUDA=cuda>=11.3 brand=tesla,driver>=418,driver<419 driver>=450 |
ENV NV_CUDA_CUDART_VERSION=11.3.109-1 |
ENV NV_CUDA_COMPAT_PACKAGE=cuda-compat-11-3 |
ARG TARGETARCH |
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com> |
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gnupg2 curl ca-certificates && curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/${NVARCH}/3bf863cc.pub | apt-key add - && echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/${NVARCH} /" > /etc/apt/sources.list.d/cuda.list && apt-get purge --autoremove -y curl && rm -rf /var/lib/apt/lists/* # buildkit |
ENV CUDA_VERSION=11.3.1 |
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-cudart-11-3=${NV_CUDA_CUDART_VERSION} ${NV_CUDA_COMPAT_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit |
RUN |1 TARGETARCH=amd64 /bin/sh -c echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf # buildkit |
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64 |
COPY NGC-DL-CONTAINER-LICENSE / # buildkit |
ENV NVIDIA_VISIBLE_DEVICES=all |
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility |
ENV NV_CUDA_LIB_VERSION=11.3.1-1 |
ENV NV_NVTX_VERSION=11.3.109-1 |
ENV NV_LIBNPP_VERSION=11.3.3.95-1 |
ENV NV_LIBNPP_PACKAGE=libnpp-11-3=11.3.3.95-1 |
ENV NV_LIBCUSPARSE_VERSION=11.6.0.109-1 |
ENV NV_LIBCUBLAS_PACKAGE_NAME=libcublas-11-3 |
ENV NV_LIBCUBLAS_VERSION=11.5.1.109-1 |
ENV NV_LIBCUBLAS_PACKAGE=libcublas-11-3=11.5.1.109-1 |
ENV NV_LIBNCCL_PACKAGE_NAME=libnccl2 |
ENV NV_LIBNCCL_PACKAGE_VERSION=2.9.9-1 |
ENV NCCL_VERSION=2.9.9-1 |
ENV NV_LIBNCCL_PACKAGE=libnccl2=2.9.9-1+cuda11.3 |
ARG TARGETARCH |
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com> |
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-libraries-11-3=${NV_CUDA_LIB_VERSION} ${NV_LIBNPP_PACKAGE} cuda-nvtx-11-3=${NV_NVTX_VERSION} libcusparse-11-3=${NV_LIBCUSPARSE_VERSION} ${NV_LIBCUBLAS_PACKAGE} ${NV_LIBNCCL_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit |
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-mark hold ${NV_LIBCUBLAS_PACKAGE_NAME} ${NV_LIBNCCL_PACKAGE_NAME} # buildkit |
COPY entrypoint.d/ /opt/nvidia/entrypoint.d/ # buildkit |
COPY nvidia_entrypoint.sh /opt/nvidia/ # buildkit |
ENV NVIDIA_PRODUCT_NAME=CUDA |
ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"] |
ENV NV_CUDA_LIB_VERSION=11.3.1-1 |
ENV NV_CUDA_CUDART_DEV_VERSION=11.3.109-1 |
ENV NV_NVML_DEV_VERSION=11.3.58-1 |
ENV NV_LIBCUSPARSE_DEV_VERSION=11.6.0.109-1 |
ENV NV_LIBNPP_DEV_VERSION=11.3.3.95-1 |
ENV NV_LIBNPP_DEV_PACKAGE=libnpp-dev-11-3=11.3.3.95-1 |
ENV NV_LIBCUBLAS_DEV_VERSION=11.5.1.109-1 |
ENV NV_LIBCUBLAS_DEV_PACKAGE_NAME=libcublas-dev-11-3 |
ENV NV_LIBCUBLAS_DEV_PACKAGE=libcublas-dev-11-3=11.5.1.109-1 |
ENV NV_CUDA_NSIGHT_COMPUTE_VERSION=11.3.0-1 |
ENV NV_CUDA_NSIGHT_COMPUTE_DEV_PACKAGE=cuda-nsight-compute-11-3=11.3.0-1 |
ENV NV_NVPROF_VERSION=11.3.111-1 |
ENV NV_NVPROF_DEV_PACKAGE=cuda-nvprof-11-3=11.3.111-1 |
ENV NV_LIBNCCL_DEV_PACKAGE_NAME=libnccl-dev |
ENV NV_LIBNCCL_DEV_PACKAGE_VERSION=2.9.9-1 |
ENV NCCL_VERSION=2.9.9-1 |
ENV NV_LIBNCCL_DEV_PACKAGE=libnccl-dev=2.9.9-1+cuda11.3 |
ARG TARGETARCH |
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com> |
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends libtinfo5 libncursesw5 cuda-cudart-dev-11-3=${NV_CUDA_CUDART_DEV_VERSION} cuda-command-line-tools-11-3=${NV_CUDA_LIB_VERSION} cuda-minimal-build-11-3=${NV_CUDA_LIB_VERSION} cuda-libraries-dev-11-3=${NV_CUDA_LIB_VERSION} cuda-nvml-dev-11-3=${NV_NVML_DEV_VERSION} ${NV_NVPROF_DEV_PACKAGE} ${NV_LIBNPP_DEV_PACKAGE} libcusparse-dev-11-3=${NV_LIBCUSPARSE_DEV_VERSION} ${NV_LIBCUBLAS_DEV_PACKAGE} ${NV_LIBNCCL_DEV_PACKAGE} ${NV_CUDA_NSIGHT_COMPUTE_DEV_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit |
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-mark hold ${NV_LIBCUBLAS_DEV_PACKAGE_NAME} ${NV_LIBNCCL_DEV_PACKAGE_NAME} # buildkit |
ENV LIBRARY_PATH=/usr/local/cuda/lib64/stubs |
RUN /bin/sh -c ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && sed -i "s@http://.*archive.ubuntu.com@http://192.168.16.118/mirrors@g" /etc/apt/sources.list && apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -yq -o Acquire::BrokenProxy="true" -o Acquire::http::No-Cache="true" -o Acquire::http::Pipeline-Depth="0" build-essential cmake openssh-server git-all sudo ssh sshpass pciutils python3 python3-dev python3-pip curl ca-certificates vim zsh tmux bash inetutils-ping less wget dialog net-tools dnsutils netcat traceroute cron htop zip openssl && curl -fsSL https://code-server.dev/install.sh | sh && rm -rf /var/lib/apt/list/* # buildkit |
RUN /bin/sh -c cd /tmp && wget http://192.168.16.118/MLNX_OFED_LINUX-5.8-3.0.7.0-ubuntu20.04-x86_64.tgz && tar -xf MLNX_OFED_LINUX-5.8-3.0.7.0-ubuntu20.04-x86_64.tgz && cd MLNX_OFED_LINUX-5.8-3.0.7.0-ubuntu20.04-x86_64 && ./mlnxofedinstall --skip-unsupported-devices-check -q && rm -rf /tmp/MLNX_OFED_LINUX-5.8-* # buildkit |
COPY startup.sh /etc/startup.sh # buildkit |
COPY code.sh /usr/bin/code.sh # buildkit |
ENTRYPOINT ["/etc/startup.sh"] |