Skip to content

Commit cb5f87b

Browse files
authored
Devcontainer tweaks (#7)
1 parent 99fa27b commit cb5f87b

4 files changed

Lines changed: 39 additions & 5 deletions

File tree

.devcontainer/opensuse/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \
2525
CARGO_HOME=/usr/local/cargo
2626
ENV PATH=${CARGO_HOME}/bin:${PATH}
2727

28+
# We should probably pin the rust version
2829
RUN curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable && \
2930
rustc -V && cargo -V
3031

.devcontainer/opensuse/devcontainer.json

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,29 @@
88

99
"platform": "linux/amd64",
1010

11-
"runArgs": [
12-
"--platform=linux/amd64"
13-
],
11+
"runArgs": ["--platform=linux/amd64"],
1412

1513
"mounts": [
1614
"type=volume,source=skybox-target,target=/workspaces/target"
1715
],
1816

19-
"postCreateCommand": "rustup component add rustfmt clippy || true"
17+
"postCreateCommand": "rustup component add rustfmt clippy rust-analyzer || true",
18+
19+
"customizations": {
20+
"vscode": {
21+
"extensions": [
22+
"rust-lang.rust-analyzer",
23+
"tamasfe.even-better-toml",
24+
"fill-labs.dependi",
25+
"vadimcn.vscode-lldb",
26+
"openai.chatgpt",
27+
"anthropic.claude-code"
28+
],
29+
"settings": {
30+
"rust-analyzer.check.command": "clippy",
31+
"editor.formatOnSave": true
32+
}
33+
}
34+
}
2035
}
2136

.devcontainer/ubuntu/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ENV RUSTUP_HOME=/home/vscode/.rustup \
3838
CARGO_HOME=/home/vscode/.cargo
3939
ENV PATH=/home/vscode/.cargo/bin:${PATH}
4040

41+
# We should probably pin the rust version
4142
RUN curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable && \
4243
rustc -V && cargo -V
4344
USER root

.devcontainer/ubuntu/devcontainer.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,22 @@
1313
"type=volume,source=skybox-target-ubuntu,target=/workspaces/target"
1414
],
1515

16-
"postCreateCommand": "rustup component add rustfmt clippy || true"
16+
"postCreateCommand": "rustup component add rustfmt clippy rust-analyzer || true",
17+
18+
"customizations": {
19+
"vscode": {
20+
"extensions": [
21+
"rust-lang.rust-analyzer",
22+
"tamasfe.even-better-toml",
23+
"fill-labs.dependi",
24+
"vadimcn.vscode-lldb",
25+
"openai.chatgpt",
26+
"anthropic.claude-code"
27+
],
28+
"settings": {
29+
"rust-analyzer.check.command": "clippy",
30+
"editor.formatOnSave": true
31+
}
32+
}
33+
}
1734
}

0 commit comments

Comments
 (0)