diff --git a/.devcontainer/non-root-user/Dockerfile b/.devcontainer/non-root-user/Dockerfile index 647e39a5dce20fda4805c8578bceaa9e13d2bf52..611825777d6b8984bf6fe211960c25f7df5149d6 100644 --- a/.devcontainer/non-root-user/Dockerfile +++ b/.devcontainer/non-root-user/Dockerfile @@ -10,7 +10,8 @@ RUN dnf --best --assumeyes update && \ git \ zsh \ which util-linux-user wget sudo passwd unzip \ - clang lldb lld clang-tools-extra && \ + clang lldb lld clang-tools-extra \ + dotnet-sdk-9.0 && \ dnf clean all RUN rm /usr/bin/cc /usr/bin/c++ && \ @@ -39,8 +40,6 @@ USER $USERNAME RUN export REMOTE="https://gitee.com/mirrors/oh-my-zsh" && \ export COMMAND="$(curl -fsSL ${REMOTE}/raw/master/tools/install.sh)" && \ sh -c "${COMMAND}" "" --unattended && \ - echo ${REMOTE} && \ - echo ${COMMAND} && \ echo 'export PATH="/usr/local/cuda-12.4/bin${PATH:+:${PATH}}"' >>~/.zshrc && \ echo 'export LD_LIBRARY_PATH="/usr/local/cuda-12.4/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"' >>~/.zshrc @@ -53,6 +52,3 @@ RUN source ~/venv/bin/activate && \ pip install --upgrade pip && \ pip install -r ~/requirements-dev.txt && \ rm -rf ~/requirements.txt ~/requirements-dev.txt - -RUN curl -o /home/vscode/vscode-lldb.vsix https://vadimcn.gallery.vsassets.io/_apis/public/gallery/publisher/vadimcn/extension/vscode-lldb/latest/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage && \ - echo "find ~ -name lldb | grep -q . || code --install-extension /home/vscode/vscode-lldb.vsix" >> ~/.zshrc diff --git a/.devcontainer/non-root-user/devcontainer.json b/.devcontainer/non-root-user/devcontainer.json index 948e76fe28c38c633a034e3259795e3fc7106e23..94c87e6cbf797ce4026814e9d0b7034a2df2cf9d 100644 --- a/.devcontainer/non-root-user/devcontainer.json +++ b/.devcontainer/non-root-user/devcontainer.json @@ -6,16 +6,18 @@ }, "runArgs": ["--userns=keep-id"], // needed for podman "remoteUser": "vscode", + "postCreateCommand": "/home/vscode/venv/bin/pip install -e .", "customizations": { "vscode": { "extensions": [ "llvm-vs-code-extensions.vscode-clangd", - // "vadimcn.vscode-lldb", + "vadimcn.vscode-lldb", "ms-toolsai.jupyter", "ziruiwang.nvidia-monitor", "esbenp.prettier-vscode", "ms-python.python", "charliermarsh.ruff", + "twxs.cmake", "josetr.cmake-language-support-vscode", "tamasfe.even-better-toml" ], diff --git a/requirements-dev.txt b/requirements-dev.txt index 1969b76703734a2be900baec37f435b0be50c0b7..8cedaa2364a846b7d0a86971f1203e35f7c267f4 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,15 @@ -r requirements.txt +accelerate +iminuit jupyter +matplotlib +mplhep nox +numpy +pandas pre-commit +pyarrow pytest pytest-cov +scipy +torch