|
1 |
| -// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 |
| -// README at: https://github.com/devcontainers/templates/tree/main/src/cpp |
3 | 1 | {
|
4 |
| - "name": "R-Dev-Env", |
5 |
| - "image": "ghcr.io/r-devel/r-dev-env:main", |
6 |
| - "hostRequirements": { |
7 |
| - "cpus": 4 |
8 |
| - }, |
9 |
| - |
10 |
| - "customizations": { |
11 |
| - "vscode": { |
12 |
| - "settings": { |
13 |
| - "r.lsp.diagnostics": false, |
14 |
| - "r.plot.useHttpgd": true, |
15 |
| - "r.rpath.linux": "/usr/bin/R", |
16 |
| - "r.rterm.linux": "/usr/bin/R", |
17 |
| - "terminal.integrated.sendKeybindingsToShell": true, |
18 |
| - "svn.multipleFolders.enabled": true, |
| 2 | + "name": "R-Dev-Env", |
| 3 | + "image": "ghcr.io/r-devel/r-dev-env:main", |
| 4 | + "hostRequirements": { |
| 5 | + "cpus": 4 |
| 6 | + }, |
| 7 | + "customizations": { |
| 8 | + "vscode": { |
| 9 | + "settings": { |
| 10 | + "r.lsp.diagnostics": false, |
| 11 | + "r.plot.useHttpgd": true, |
| 12 | + "r.rpath.linux": "/usr/bin/R", |
| 13 | + "r.rterm.linux": "/usr/bin/R", |
| 14 | + "terminal.integrated.sendKeybindingsToShell": true, |
| 15 | + "svn.multipleFolders.enabled": true, |
19 | 16 | "workbench.editorAssociations": {
|
20 | 17 | "*.md": "vscode.markdown.preview.editor"
|
21 | 18 | },
|
22 | 19 | "workbench.welcomePage.walkthroughs.openOnInstall": false
|
23 |
| - }, |
24 |
| - "extensions": [ |
25 |
| - "REditorSupport.r", |
26 |
| - "mads-hartmann.bash-ide-vscode", |
27 |
| - "johnstoncode.svn-scm", |
28 |
| - "ms-vscode.cpptools", |
29 |
| - "MS-vsliveshare.vsliveshare" |
30 |
| - ] |
31 |
| - } |
32 |
| - |
33 |
| - }, |
34 |
| - "postCreateCommand":"cat /workspaces/r-dev-env/scripts/welcome_msg.sh >> ~/.bashrc && cat /workspaces/r-dev-env/scripts/set_build_r.sh >> ~/.bashrc && bash /workspaces/r-dev-env/scripts/localscript.sh" |
35 |
| - // Features to add to the dev container. More info: https://containers.dev/features. |
36 |
| - // "features": {}, |
37 |
| - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
38 |
| - // "forwardPorts": [], |
39 |
| - // Use 'postCreateCommand' to run commands after the container is created. |
40 |
| - // "postCreateCommand": "gcc -v", |
41 |
| - // Configure tool-specific properties. |
42 |
| - // "customizations": {}, |
43 |
| - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
44 |
| - // "remoteUser": "root" |
| 20 | + }, |
| 21 | + "extensions": [ |
| 22 | + "REditorSupport.r", |
| 23 | + "mads-hartmann.bash-ide-vscode", |
| 24 | + "johnstoncode.svn-scm", |
| 25 | + "ms-vscode.cpptools", |
| 26 | + "MS-vsliveshare.vsliveshare" |
| 27 | + ] |
| 28 | + } |
| 29 | + }, |
| 30 | + "postCreateCommand": "chown -R vscode:vscode /workspaces/r-dev-env && sh /workspaces/r-dev-env/scripts/localscript.sh" |
45 | 31 | }
|
0 commit comments