Singularity 1.4 KB

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