-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.template.json
More file actions
120 lines (120 loc) · 3.69 KB
/
Copy pathdevcontainer.template.json
File metadata and controls
120 lines (120 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"name": "Diamonds Development Environment",
"dockerComposeFile": [
"docker-compose.dev.yml"
],
"service": "devcontainer",
"workspaceFolder": "/workspaces/__WORKSPACE_NAME__",
"initializeCommand": "python3 .devcontainer/scripts/init-devcontainer.py || python .devcontainer/scripts/init-devcontainer.py",
"remoteEnv": {
"WORKSPACE_NAME": "__WORKSPACE_NAME__",
"WORKSPACE_FOLDER": "/workspaces/__WORKSPACE_NAME__"
},
"containerEnv": {
"WORKSPACE_NAME": "__WORKSPACE_NAME__",
"WORKSPACE_FOLDER": "/workspaces/__WORKSPACE_NAME__",
"DIAMOND_NAME": "__DIAMOND_NAME__",
"NODE_ENV": "development",
"HARDHAT_NETWORK": "hardhat",
"YARN_ENABLE_IMMUTABLE_INSTALLS": "false",
"CI_MODE": "false",
"GAS_REPORTER_ENABLED": "false",
"REPORT_GAS": "false",
"PYTHONUNBUFFERED": "1",
"PIP_DISABLE_PIP_VERSION_CHECK": "1",
"VAULT_ADDR": "http://vault-dev:__VAULT_PORT__"
},
"customizations": {
"vscode": {
"extensions": [
"JuanBlanco.solidity",
"NomicFoundation.hardhat-solidity",
"ms-vscode.vscode-typescript-next",
"ms-vscode.vscode-eslint",
"esbenp.prettier-vscode",
"ms-vscode.vscode-json",
"ms-vscode.vscode-yaml",
"ms-vscode.vscode-docker",
"GitHub.copilot",
"GitHub.copilot-chat",
"eamodio.gitlens",
"usernamehw.errorlens",
"github.vscode-pull-request-github",
"github.vscode-github-actions",
"ms-python.python",
"ms-vscode.vscode-markdown",
"redhat.vscode-yaml",
"ms-vscode.vscode-git-graph",
"streetsidesoftware.code-spell-checker",
"ms-vscode.vscode-security",
"mads-hartmann.bash-ide-vscode"
],
"settings": {
"typescript.preferences.includePackageJsonAutoImports": "auto",
"typescript.suggest.autoImports": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit"
},
"solidity.compileUsingRemoteVersion": "0.8.19",
"solidity.defaultCompiler": "remote",
"solidity.formatter": "prettier",
"solidity.packageDefaultDependenciesContractsDirectory": "contracts",
"solidity.packageDefaultDependenciesDirectory": "node_modules",
"eslint.workingDirectories": [
"."
],
"prettier.configPath": ".prettierrc",
"files.associations": {
"*.sol": "solidity",
"hardhat.config.ts": "typescript",
"*.config.ts": "typescript"
},
"terminal.integrated.shell.linux": "/bin/bash",
"git.autofetch": true,
"git.enableSmartCommit": true,
"security.workspace.trust.untrustedFiles": "open",
"editor.minimap.enabled": false,
"workbench.editor.enablePreview": false
}
}
},
"forwardPorts": [
8545,
8546,
3000,
5000,
8080,
8200
],
"portsAttributes": {
"8545": {
"label": "Hardhat Network",
"onAutoForward": "notify"
},
"8546": {
"label": "Additional Blockchain Node",
"onAutoForward": "silent"
},
"8200": {
"label": "Vault Dev Server",
"onAutoForward": "silent"
},
"3000": {
"label": "Frontend Development",
"onAutoForward": "silent"
}
},
"postCreateCommand": "bash .devcontainer/scripts/post-create.sh",
"postStartCommand": "bash .devcontainer/scripts/post-start.sh",
"postAttachCommand": "bash .devcontainer/scripts/setup-security.sh",
"remoteUser": "node",
"overrideCommand": false,
"shutdownAction": "stopCompose",
"hostRequirements": {
"cpus": 2,
"memory": "4gb",
"storage": "32gb"
}
}