Skip to content

Commit b8c484c

Browse files
committed
Update devcontainer.json with SSH mount and Alpine Git feature
1 parent 33ae97d commit b8c484c

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.devcontainer/devcontainer.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
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/alpine
3-
{
4-
"name": "JOSS-Pandoc",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
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/alpine
3+
{
4+
"name": "JOSS-Pandoc",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
76
"build": {
87
// Path is relative to the devcontainer.json file.
98
"dockerfile": "../inara/Dockerfile"
10-
}
11-
12-
13-
// Features to add to the dev container. More info: https://containers.dev/features.
14-
// "features": {},
15-
16-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17-
// "forwardPorts": [],
9+
},
10+
"mounts": [
11+
"type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,readonly"
12+
],
1813

19-
// Use 'postCreateCommand' to run commands after the container is created.
20-
// "postCreateCommand": "uname -a",
21-
22-
// Configure tool-specific properties.
23-
// "customizations": {},
24-
25-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
26-
// "remoteUser": "root"
27-
}
14+
// Features to add to the dev container. More info: https://containers.dev/features.
15+
"features": {
16+
"ghcr.io/cirolosapio/devcontainers-features/alpine-git:0": "0.1.0",
17+
"ghcr.io/cirolosapio/devcontainers-features/alpine-openssh:0": "0.1.0"
18+
}
19+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
20+
// "forwardPorts": [],
21+
// Use 'postCreateCommand' to run commands after the container is created.
22+
// "postCreateCommand": "uname -a",
23+
// Configure tool-specific properties.
24+
// "customizations": {},
25+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
26+
// "remoteUser": "root"
27+
}

0 commit comments

Comments
 (0)