From ba7827dce0f763ce04c886f4968740fca21c7422 Mon Sep 17 00:00:00 2001 From: Ben Wibking Date: Sat, 31 Aug 2024 17:40:50 -0400 Subject: [PATCH] add developer tools for Codespaces/VSCode --- scripts/docker/Dockerfile.nvcc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/docker/Dockerfile.nvcc b/scripts/docker/Dockerfile.nvcc index 343822afc8b8..1a8a73dd6680 100644 --- a/scripts/docker/Dockerfile.nvcc +++ b/scripts/docker/Dockerfile.nvcc @@ -1,7 +1,7 @@ FROM nvidia/cuda:12.1.0-devel-ubuntu22.04 RUN apt-get clean && apt-get update -y && \ - DEBIAN_FRONTEND="noninteractive" TZ=America/New_York apt-get install -y --no-install-recommends git python3-minimal libpython3-stdlib bc hwloc wget openssh-client python3-numpy python3-h5py python3-matplotlib python3-scipy python3-pip lcov curl cuda-nsight-systems-12-6 cmake ninja-build libpython3-dev gcc-11 g++-11 emacs nvi && \ + DEBIAN_FRONTEND="noninteractive" TZ=America/New_York apt-get install -y --no-install-recommends git python3-minimal libpython3-stdlib bc hwloc wget openssh-client python3-numpy python3-h5py python3-matplotlib python3-scipy python3-pip lcov curl cuda-nsight-systems-12-6 cmake ninja-build libpython3-dev gcc-11 g++-11 emacs nvi sphinx-doc python3-sphinx-rtd-theme python3-sphinxcontrib.bibtex python3-sphinx-copybutton && \ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 10 && \ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 10 @@ -11,6 +11,9 @@ RUN pip3 install unyt RUN pip3 install blosc2 +# for Codespaces/VSCode Sphinx support +RUN pip3 install esbonio + # h5py from the repo is incompatible with the default numpy 2.1.0 # Downgrading is not the cleanest solution, but it works... # see https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from @@ -20,7 +23,7 @@ RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && \ echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main" > /etc/apt/sources.list.d/llvm.list RUN apt-get clean && apt-get update -y && \ - DEBIAN_FRONTEND="noninteractive" TZ=America/New_York apt-get install -y --no-install-recommends clang-19 llvm-19 libomp-19-dev && \ + DEBIAN_FRONTEND="noninteractive" TZ=America/New_York apt-get install -y --no-install-recommends clang-19 llvm-19 libomp-19-dev clangd-19 && \ rm -rf /var/lib/apt/lists/* RUN cd /tmp && \