Dev container

This commit is contained in:
Dennis Schwerdel 2023-10-07 01:16:55 +02:00
parent ca220ded0c
commit 5eeb125d74
2 changed files with 24 additions and 20 deletions

View File

@ -11,7 +11,7 @@ RUN chown vscode: -R /usr/local/rustup /usr/local/cargo
USER vscode USER vscode
RUN rustup default 1.57.0 \ RUN rustup default 1.73.0 \
&& rustup component add clippy rust-src rustfmt && rustup component add clippy rust-src rustfmt
RUN cargo install cargo-outdated cargo-cache cargo-criterion \ RUN cargo install cargo-outdated cargo-cache cargo-criterion \

View File

@ -8,14 +8,16 @@
"--security-opt", "--security-opt",
"seccomp=unconfined" "seccomp=unconfined"
], ],
// Add the IDs of extensions you want installed when the container is created.
// Set *default* container specific settings.json values on container create. // Set *default* container specific settings.json values on container create.
"settings": { "customizations": {
"vscode": {
"terminal.integrated.shell.linux": "/bin/bash", "terminal.integrated.shell.linux": "/bin/bash",
"lldb.executable": "/usr/bin/lldb", "lldb.executable": "/usr/bin/lldb",
// VS Code don't watch files under ./target // VS Code don't watch files under ./target
"files.watcherExclude": { "files.watcherExclude": {
"**/target/**": true "**/target/**": true
}
}, },
// Add the IDs of extensions you want installed when the container is created. // Add the IDs of extensions you want installed when the container is created.
"extensions": [ "extensions": [
@ -27,7 +29,9 @@
"matklad.rust-analyzer", "matklad.rust-analyzer",
"asciidoctor.asciidoctor-vscode", "asciidoctor.asciidoctor-vscode",
"ms-vscode.test-adapter-converter" "ms-vscode.test-adapter-converter"
], ]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally. // Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [], // "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created. // Use 'postCreateCommand' to run commands after the container is created.