Dockerfile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright (c) 2021 NVIDIA Corporation. All rights reserved.
  2. # To build the docker container, run: $ sudo docker build -t nways-labs:latest .
  3. # To run: $ sudo docker run --rm -it --runtime nvidia -p 8888:8888 nways-labs:latest
  4. # Finally, open http://localhost:8888/
  5. #FROM nvcr.io/nvidia/nvhpc:20.11-devel-cuda_multi-ubuntu20.04
  6. FROM nvcr.io/nvidia/nvhpc:21.3-devel-cuda_multi-ubuntu20.04
  7. RUN apt-get -y update && \
  8. DEBIAN_FRONTEND=noninteractive apt-get -yq install --no-install-recommends python3-pip python3-setuptools nginx zip make build-essential libtbb-dev && \
  9. rm -rf /var/lib/apt/lists/* && \
  10. pip3 install --upgrade pip &&\
  11. pip3 install gdown
  12. RUN apt-get update -y
  13. RUN apt-get install -y git nvidia-modprobe
  14. RUN pip3 install jupyterlab
  15. # Install required python packages
  16. RUN pip3 install ipywidgets
  17. ############################################
  18. # NVIDIA nsight-systems-2020.5.1 ,nsight-compute-2
  19. #RUN apt-get update -y && \
  20. # DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
  21. # apt-transport-https ca-certificates gnupg wget && \
  22. # apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys F60F4B3D7FA2AF80 && \
  23. # echo "deb https://developer.download.nvidia.com/devtools/repos/ubuntu2004/amd64/ /" >> /etc/apt/sources.list.d/nsight.list &&\
  24. RUN apt-get update -y
  25. # RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends nsight-systems-2020.5.1 nsight-compute-2020.2.1
  26. # TO COPY the data
  27. COPY nways_labs/ /labs/
  28. RUN python3 /labs/nways_MD/English/C/source_code/dataset.py
  29. RUN python3 /labs/nways_MD/English/Fortran/source_code/dataset.py
  30. #################################################
  31. ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib:/opt/nvidia/hpc_sdk/Linux_x86_64/21.3/cuda/11.3/lib64/"
  32. #ENV PATH="/opt/nvidia/nsight-systems/2020.5.1/bin:/opt/nvidia/nsight-compute/2020.2.1:/opt/nvidia/hpc_sdk/Linux_x86_64/21.3/cuda/11.2/include:/usr/local/bin:/opt/anaconda3/bin:/usr/bin:$PATH"
  33. ENV PATH="/opt/nvidia/hpc_sdk/Linux_x86_64/21.3/cuda/11.2/include:/usr/local/bin:/opt/anaconda3/bin:/usr/bin:$PATH"
  34. #################################################
  35. ADD nways_labs/ /labs
  36. WORKDIR /labs
  37. CMD jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/labs