Skip to content

Commit e87d0f8

Browse files
committed
Add devcontainer
1 parent 97c77b4 commit e87d0f8

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM carpentries/workbench-docker:latest
2+
3+
## this could be used to run userland scripts e.g.
4+
## users could add specific dependencies or configurations
5+
## RUN scripts/userland.sh

.devcontainer/devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"remoteUser":"rstudio",
3+
"workspaceMount": "source=${localWorkspaceFolder},target=/home/rstudio/lesson,type=bind",
4+
"workspaceFolder": "/home/rstudio/lesson",
5+
"mounts": [
6+
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/rstudio/.ssh,type=bind,consistency=cached",
7+
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.gnupg,target=/home/rstudio/.gnupg,type=bind,consistency=cached"
8+
],
9+
"build": {
10+
"dockerfile": "Dockerfile",
11+
"context": ".."
12+
},
13+
"postCreateCommand": {
14+
"pre_echo": "echo 'Installing lesson prerequisites - please wait...'",
15+
"lesson_deps": "Rscript /home/rstudio/.workbench/setup_lesson_deps.R",
16+
"fortify": "Rscript /home/rstudio/.workbench/fortify_renv_cache.R"
17+
}
18+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.16.13.9000
1+
0.17.1

0 commit comments

Comments
 (0)