From 7e1eca55d4f5b115b8271b0ba581086bd7fda25b Mon Sep 17 00:00:00 2001 From: "Xuefeng Ding (IHEP)" <dingxf@ihep.ac.cn> Date: Fri, 6 Dec 2024 06:13:32 +0800 Subject: [PATCH] update --- .devcontainer/non-root-user/Dockerfile | 8 ++------ .devcontainer/non-root-user/devcontainer.json | 4 +++- requirements-dev.txt | 9 +++++++++ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.devcontainer/non-root-user/Dockerfile b/.devcontainer/non-root-user/Dockerfile index 647e39a..6118257 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 948e76f..94c87e6 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 1969b76..8cedaa2 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 -- GitLab