diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index fd359e1..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -# https://mcr.microsoft.com/en-us/product/devcontainers/rust/about -FROM mcr.microsoft.com/devcontainers/rust:bookworm - -RUN apt-get update && \ - apt install -y build-essential xz-utils musl-tools musl-dev gcc-multilib pkg-config libssl-dev clang mold - -RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+') && \ - curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \ - sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit && \ - rm -rf lazygit.tar.gz - -RUN BTOP_VERSION=$(curl -s "https://api.github.com/repos/aristocratos/btop/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+') && \ - wget "https://github.com/aristocratos/btop/releases/download/v${BTOP_VERSION}/btop-x86_64-linux-musl.tbz" && \ - sudo tar -xvf btop-x86_64-linux-musl.tbz && \ - cd btop && ./install.sh && cd .. && \ - rm -rf btop-x86_64-linux-musl.tbz btop - -RUN curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin -# cargo install cargo-nextest --locked diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 9c37c5f..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,72 +0,0 @@ -// For format details, see https://aka.ms/devcontainer.json. For config options, see the -// README at: https://github.com/devcontainers/templates/tree/main/src/rust -// https://containers.dev/implementors/json_reference/#variables-in-devcontainerjson -{ - "name": "Rust", - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - // "image": "mcr.microsoft.com/devcontainers/rust:0-1-bullseye", - "build": { - // Path is relataive to the devcontainer.json file. - "dockerfile": "Dockerfile" - }, - // https://github.com/microsoft/vscode-remote-release/issues/2485#issuecomment-1156342780 - "runArgs": [ - "--name", - "devcontainer-${containerWorkspaceFolderBasename}" - ], - "initializeCommand": "docker rm -f devcontainer-${containerWorkspaceFolderBasename} || true", - // Use 'mounts' to make the cargo cache persistent in a Docker Volume. - "mounts": [ - { - // "source": "devcontainer-cargo-cache-${devcontainerId}", - "source": "devcontainer-cargo-cache-${containerWorkspaceFolderBasename}", - "target": "/usr/local/cargo", - "type": "volume" - }, - { - "source": "${localWorkspaceFolderBasename}-target", - "target": "${containerWorkspaceFolder}/target", - "type": "volume" - } - ], - // Features to add to the dev container. More info: https://containers.dev/features. - "features": { - "ghcr.io/devcontainers/features/git:1": {} - // "ghcr.io/devcontainers/features/nix:1": { - // "packages": [ - // "btop", - // "lazygit" - // ] - // } - }, - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": { - // }, - "postAttachCommand": { - "AddGitSafeDir": "git config --global --add safe.directory /workspaces/${containerWorkspaceFolderBasename}", - "update": "rustup target add x86_64-unknown-linux-musl && rustup update && cargo update", - "clippy": "cargo clippy --fix --allow-dirty" - }, - // Configure tool-specific properties. - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - "remoteUser": "root", - "customizations": { - "vscode": { - "extensions": [ - "vadimcn.vscode-lldb", - "serayuzgur.crates", - "tamasfe.even-better-toml", - "rust-lang.rust-analyzer", - "mutantdino.resourcemonitor", - "christian-kohler.path-intellisense", - "Gruntfuggly.todo-tree", - "ms-azuretools.vscode-docker", - "redhat.vscode-yaml", - "GitHub.copilot", - "GitHub.copilot-chat" - ] - } - } -} \ No newline at end of file