Singularity 933 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
  2. Bootstrap: docker
  3. From: nvcr.io/nvidia/tlt-streamanalytics:v3.0-dp-py3
  4. %environment
  5. export XDG_RUNTIME_DIR=
  6. echo "export PATH=\"\$PATH:$(pwd)\"" >> ~/.bash_profile && source ~/.bash_profile
  7. export PATH="$PATH:/usr/local/bin"
  8. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
  9. %post
  10. apt-get -y update
  11. apt-get -y install git nvidia-modprobe
  12. pip3 install jupyterlab
  13. pip3 install ipywidgets
  14. pip3 install gdown
  15. #mkdir /workspace/tlt-experiments/data
  16. mkdir /workspace/tlt-experiments/classification
  17. python3 /workspace/tlt-experiments/source_code/dataset.py
  18. chmod -R 777 /workspace/tlt-experiments/specs
  19. chmod -R 777 /workspace/tlt-experiments/data
  20. chmod -R 777 /workspace/tlt-experiments/classification
  21. %files
  22. English/ /workspace/tlt-experiments
  23. %runscript
  24. "$@"
  25. %labels
  26. AUTHOR Tosin