Skip to content

Commit d84cfd6

Browse files
authored
Update devcontainer.json
https://github.com/Dargon789/foundry/blob/94f4892dcef8fea1a98b9fc4ac98cf8818a38a03/.devcontainer/devcontainer.json Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
1 parent 9448268 commit d84cfd6

File tree

1 file changed

+40
-13
lines changed

1 file changed

+40
-13
lines changed

.devcontainer /devcontainer.json

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,49 @@
1+
// For format details, see https://aka.ms/devcontainer.json.
12
{
2-
"name": "Hardhat + EDR",
3-
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
3+
"name": "Foundry Development",
4+
"build": {
5+
"context": "..",
6+
"dockerfile": "Dockerfile.dev"
7+
},
8+
49
"features": {
5-
"ghcr.io/devcontainers/features/node:1": {
6-
"version": "20"
10+
"ghcr.io/devcontainers/features/common-utils:2": {
11+
"installZsh": true,
12+
"configureZshAsDefaultShell": true,
13+
"installOhMyZsh": true,
14+
"upgradePackages": true
715
}
816
},
9-
"postCreateCommand": "scripts/setup.sh",
10-
"containerEnv": {
11-
"ALCHEMY_URL": "${localEnv:ALCHEMY_URL}",
12-
"INFURA_URL": "${localEnv:INFURA_URL}"
13-
},
17+
18+
"forwardPorts": [],
19+
20+
"postCreateCommand": "rustup default stable && rustup update",
21+
1422
"customizations": {
1523
"vscode": {
1624
"extensions": [
17-
"esbenp.prettier-vscode",
18-
"NomicFoundation.hardhat-solidity"
19-
]
25+
"rust-lang.rust-analyzer",
26+
"serayuzgur.crates",
27+
"tamasfe.even-better-toml",
28+
"ms-python.python",
29+
"dbaeumer.vscode-eslint",
30+
"oven.bun-vscode"
31+
],
32+
"settings": {
33+
"rust-analyzer.checkOnSave": true,
34+
"rust-analyzer.cargo.features": "all"
35+
}
2036
}
21-
}
37+
},
38+
39+
"remoteUser": "foundry",
40+
41+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
42+
43+
"workspaceFolder": "/workspace",
44+
45+
"mounts": [
46+
"source=${localEnv:HOME}/.cargo/registry,target=/home/foundry/.cargo/registry,type=bind,consistency=cached",
47+
"source=${localEnv:HOME}/.cargo/git,target=/home/foundry/.cargo/git,type=bind,consistency=cached"
48+
]
2249
}

0 commit comments

Comments
 (0)