diff --git a/.devcontainer/Dockerfile.devcontainer b/.devcontainer/Dockerfile.devcontainer new file mode 100644 index 00000000..f81436e9 --- /dev/null +++ b/.devcontainer/Dockerfile.devcontainer @@ -0,0 +1,20 @@ +FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04 + +RUN apt-get update +RUN apt update + +# Get Ubuntu packages +RUN apt-get install -y \ + build-essential \ + curl \ + wget + +# install uv and python +RUN curl -LsSf https://astral.sh/uv/0.6.17/install.sh | sh +RUN ~/.local/bin/uv python install 3.13 + +# install rust +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +ENV PATH="/root/.cargo/bin:${PATH}" + +ENV DO_NOT_TRACK=1 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..6a7603fe --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,39 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "DSRs", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "build": { + // Path is relative to the devcontainer.json file. + "dockerfile": "./Dockerfile.devcontainer", + "context": ".." + }, + + "remoteUser": "root", + "containerUser": "root", + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": {}, + + // 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": {}, + + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + "[rust]": { + "editor.defaultFormatter": "rust-lang.rust-analyzer" + }, + "editor.formatOnSave": true + }, + "extensions": [ + "rust-lang.rust-analyzer" + ] + } + } +}