Singularity 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Bootstrap: docker
  2. From: nvcr.io/nvidia/deepstream:5.0-20.07-triton
  3. %runscript
  4. "$@"
  5. %post
  6. apt-get -y update
  7. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-transport-https ca-certificates gnupg wget
  8. rm -rf /var/lib/apt/lists/*
  9. wget -qO - https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | apt-key add -
  10. echo "deb https://developer.download.nvidia.com/devtools/repo-deb/x86_64/ /" >> /etc/apt/sources.list.d/nsight.list
  11. apt-get -y update
  12. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends nsight-systems-2020.2.1
  13. rm -rf /var/lib/apt/lists/*
  14. apt-get -y update
  15. apt-get install -y ffmpeg python3-gi python3-dev python3-pip cmake unzip
  16. pip3 install pybind11 jupyterlab gdown
  17. cd /opt/nvidia/deepstream/deepstream/lib
  18. python3 setup.py install
  19. cd /opt/nvidia/deepstream/deepstream-5.0/python/source_code/dataset/
  20. python3 /opt/nvidia/deepstream/deepstream-5.0/python/source_code/dataset/download_dataset.py
  21. unzip deepstream_dataset.zip
  22. cd /opt/nvidia/deepstream/deepstream/lib
  23. %files
  24. English/* /opt/nvidia/deepstream/deepstream-5.0/
  25. %environment
  26. XDG_RUNTIME_DIR=
  27. %labels
  28. AUTHOR bharatk