Skip to content

Commit 964bf9d

Browse files
map github cli config dir.
1 parent 3438d90 commit 964bf9d

File tree

2 files changed

+48
-12
lines changed

2 files changed

+48
-12
lines changed

src/devcontainers/loaded/.devcontainer/devcontainer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"postCreateCommand": "echo Loaded Created",
77
"postStartCommand": "echo Loaded Started",
88
"features": {
9-
"ghcr.io/nhsdigital/nhs-notify-devcontainers/nhsnotify:1.0.14": {}
9+
"ghcr.io/nhsdigital/nhs-notify-devcontainers/nhsnotify:1.0.15": {}
1010
},
1111
"runArgs": [
1212
"--platform=linux/amd64"
@@ -18,8 +18,10 @@
1818
"UPDATEFROMTEMPLATE": "true",
1919
"SHOWWELCOME": "true",
2020
"MAKECONFIG": "true",
21-
"GITHUBMONITOR": "true"
21+
"GITHUBMONITOR": "true",
22+
"GH_TOKEN": "${localEnv:GH_TOKEN_LOCAL}"
2223
},
23-
"initializeCommand": "touch $HOME/.gitconfig && mkdir -p $HOME/.aws || true && mkdir -p $HOME/.gnupg || true && mkdir -p $HOME/.ssh || true",
24+
"initializeCommand": "touch $HOME/.config/gh/hosts.yml || true && touch $HOME/.gitconfig || true && mkdir -p $HOME/.aws || true && mkdir -p $HOME/.gnupg || true && mkdir -p $HOME/.ssh || true",
2425

25-
}
26+
}
27+

src/features/nhsnotify/devcontainer-feature.json

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"id": "nhsnotify",
99
"name": "NHS Notify",
10-
"version": "1.0.14",
10+
"version": "1.0.15",
1111
"dependsOn": {
1212
"ghcr.io/devcontainers/features/common-utils:2.5.4": {
1313
"configureZshAsDefaultShell": true,
@@ -20,14 +20,48 @@
2020
"username": "automatic"
2121
}
2222
},
23-
"postCreateCommand": ["/usr/local/share/nhsnotify/scripts/postcreatecommand.sh"],
24-
"postStartCommand": ["/usr/local/share/nhsnotify/scripts/poststartcommand.sh"],
23+
"postCreateCommand": [
24+
"/usr/local/share/nhsnotify/scripts/postcreatecommand.sh"
25+
],
26+
"postStartCommand": [
27+
"/usr/local/share/nhsnotify/scripts/poststartcommand.sh"
28+
],
2529
"mounts": [
26-
{"source": "/usr/local/share/ca-certificates", "target": "/home/ca-certificates", "type": "bind"},
27-
{"source": "${localEnv:HOME}/.aws", "target": "/home/vscode/.aws", "type": "bind"},
28-
{"source": "${localEnv:HOME}/.gitconfig", "target": "/home/vscode/.gitconfig", "type": "bind"},
29-
{"source": "${localEnv:HOME}/.gnupg", "target": "/home/vscode/.gnupg", "type": "bind"},
30-
{"source": "${localEnv:HOME}/.ssh", "target": "/home/vscode/.ssh", "type": "bind"}
30+
{
31+
"source": "/usr/local/share/ca-certificates",
32+
"target": "/home/ca-certificates",
33+
"type": "bind"
34+
},
35+
{
36+
"source": "${localEnv:HOME}/.aws",
37+
"target": "/home/vscode/.aws",
38+
"type": "bind"
39+
},
40+
{
41+
"source": "${localEnv:HOME}/.gitconfig",
42+
"target": "/home/vscode/.gitconfig",
43+
"type": "bind"
44+
},
45+
{
46+
"source": "${localEnv:HOME}/.gnupg",
47+
"target": "/home/vscode/.gnupg",
48+
"type": "bind"
49+
},
50+
{
51+
"source": "${localEnv:HOME}/.ssh",
52+
"target": "/home/vscode/.ssh",
53+
"type": "bind"
54+
},
55+
{
56+
"source": "${localEnv:HOME}/.ssh",
57+
"target": "/home/vscode/.ssh",
58+
"type": "bind"
59+
},
60+
{
61+
"source": "${localEnv:HOME}/.config/gh/hosts.yml",
62+
"target": "/home/vscode/.config/gh/hosts.yml",
63+
"type": "bind"
64+
}
3165
],
3266
"customizations": {
3367
"vscode": {

0 commit comments

Comments
 (0)