-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevcontainer.json
40 lines (39 loc) · 1.05 KB
/
devcontainer.json
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
{
"name": "R Environment",
// CHANGE: from ghcr.io/anushapb/codespacer:latest to ghcr.io/username/reponame:latest
"image": "ghcr.io/anushapb/codespacer:latest",
"runArgs": [ "--security-opt", "seccomp=unconfined" ],
"waitFor": "onCreateCommand",
"customizations": {
"codespaces": {
"openFiles": ["README.md"]
},
"vscode": {
"settings": {
"r.rterm.linux": "/usr/local/bin/radian",
"r.bracketedPaste": true,
"r.plot.useHttpgd": true,
"[r]": {
"editor.wordSeparators": "`~!@#%$^&*()-=+[{]}\\|;:'\",<>/?"
}
},
"extensions": [
"reditorsupport.r",
"rdebugger.r-debugger"
]
}
},
// Forward Jupyter and RStudio ports
"forwardPorts": [8787],
"portsAttributes": {
"8787": {
"label": "Rstudio",
"requireLocalPort": true,
"onAutoForward": "ignore"
}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "bash .devcontainer/setup.sh",
"postAttachCommand": "sudo rstudio-server start &> /dev/null && bash .devcontainer/welcome.sh",
"remoteUser": "rstudio"
}