Skip to content

Commit 413a9b6

Browse files
back in container for post commands.
1 parent d55f82a commit 413a9b6

File tree

3 files changed

+67
-88
lines changed

3 files changed

+67
-88
lines changed

src/devcontainers/base/.devcontainer/devcontainer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
"build": {
33
"dockerfile": "Dockerfile"
44
},
5-
65
"name": "NHS Notify Default Base Developer Container",
76
"runArgs": [
87
"--platform=linux/amd64"
9-
],
10-
"initializeCommand": "touch $HOME/.gitconfig && mkdir -p $HOME/.aws || true && mkdir -p $HOME/.gnupg || true && mkdir -p $HOME/.ssh || true",
11-
8+
]
129
}

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

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,71 @@
1313
4000
1414
],
1515
"name": "NHS Notify Fully Loaded Developer Container",
16-
1716
"containerEnv": {
1817
"UPDATEFROMTEMPLATE": "true",
1918
"SHOWWELCOME": "true"
19+
},
20+
"initializeCommand": "touch $HOME/.gitconfig && mkdir -p $HOME/.aws || true && mkdir -p $HOME/.gnupg || true && mkdir -p $HOME/.ssh || true",
21+
"postCreateCommand": "zsh /usr/local/share/nhsnotify/scripts/postcreatecommand.sh",
22+
"postStartCommand": "zsh /usr/local/share/nhsnotify/scripts/poststartcommand.sh",
23+
"mounts": [
24+
"source=/usr/local/share/ca-certificates,target=/home/ca-certificates,type=bind,consistency=cached",
25+
"source=${localEnv:HOME}/.aws,target=/home/vscode/.aws,type=bind,consistency=cached",
26+
"source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind,consistency=cached",
27+
"source=${localEnv:HOME}/.gnupg,target=/home/vscode/.gnupg,type=bind,consistency=cached",
28+
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached"
29+
],
30+
"customizations": {
31+
"vscode": {
32+
"extensions": [
33+
"alefragnani.bookmarks",
34+
"AmazonWebServices.aws-toolkit-vscode",
35+
"chdsbd.github-code-owners",
36+
"davidanson.vscode-markdownlint",
37+
"dbaeumer.vscode-eslint",
38+
"donjayamanne.githistory",
39+
"editorconfig.editorconfig",
40+
"esbenp.prettier-vscode",
41+
"fvclaus.sort-json-array",
42+
"github.codespaces",
43+
"github.github-vscode-theme",
44+
"github.remotehub",
45+
"github.vscode-github-actions",
46+
"github.vscode-pull-request-github",
47+
"hediet.vscode-drawio",
48+
"johnpapa.vscode-peacock",
49+
"joshx.workspace-terminals",
50+
"maattdd.gitless",
51+
"mhutchie.git-graph",
52+
"ms-azuretools.vscode-docker",
53+
"ms-vscode-remote.remote-containers",
54+
"ms-vscode-remote.remote-wsl",
55+
"ms-vscode.hexeditor",
56+
"ms-vscode.live-server",
57+
"ms-vsliveshare.vsliveshare",
58+
"redhat.vscode-xml",
59+
"streetsidesoftware.code-spell-checker-british-english",
60+
"takumii.markdowntable",
61+
"tamasfe.even-better-toml",
62+
"tomoki1207.pdf",
63+
"vscode-icons-team.vscode-icons",
64+
"vstirbu.vscode-mermaid-preview",
65+
"wayou.vscode-todo-highlight",
66+
"yzane.markdown-pdf",
67+
"yzhang.dictionary-completion",
68+
"yzhang.markdown-all-in-one",
69+
"zoma.vscode-auto-open-workspace"
70+
],
71+
"settings": {
72+
"[makefile]": {
73+
"editor.detectIndentation": false,
74+
"editor.insertSpaces": false
75+
},
76+
"autoOpenWorkspace.enableAutoOpenIfSingleWorkspace": true,
77+
"editor.formatOnSave": true,
78+
"extensions.ignoreRecommendations": true,
79+
"files.insertFinalNewline": true
80+
}
81+
}
2082
}
2183
}

src/features/nhsnotify/devcontainer-feature.json

Lines changed: 3 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -47,87 +47,7 @@
4747
},
4848
"id": "nhsnotify",
4949
"name": "NHS Notify",
50-
"postCreateCommand": "zsh /usr/local/share/nhsnotify/scripts/postcreatecommand.sh",
51-
"postStartCommand": "zsh /usr/local/share/nhsnotify/scripts/poststartcommand.sh",
52-
"version": "1.0.7",
53-
"customizations": {
54-
"vscode": {
55-
"extensions": [
56-
"alefragnani.bookmarks",
57-
"AmazonWebServices.aws-toolkit-vscode",
58-
"chdsbd.github-code-owners",
59-
"davidanson.vscode-markdownlint",
60-
"dbaeumer.vscode-eslint",
61-
"donjayamanne.githistory",
62-
"editorconfig.editorconfig",
63-
"esbenp.prettier-vscode",
64-
"fvclaus.sort-json-array",
65-
"github.codespaces",
66-
"github.github-vscode-theme",
67-
"github.remotehub",
68-
"github.vscode-github-actions",
69-
"github.vscode-pull-request-github",
70-
"hediet.vscode-drawio",
71-
"johnpapa.vscode-peacock",
72-
"joshx.workspace-terminals",
73-
"maattdd.gitless",
74-
"mhutchie.git-graph",
75-
"ms-azuretools.vscode-docker",
76-
"ms-vscode-remote.remote-containers",
77-
"ms-vscode-remote.remote-wsl",
78-
"ms-vscode.hexeditor",
79-
"ms-vscode.live-server",
80-
"ms-vsliveshare.vsliveshare",
81-
"redhat.vscode-xml",
82-
"streetsidesoftware.code-spell-checker-british-english",
83-
"takumii.markdowntable",
84-
"tamasfe.even-better-toml",
85-
"tomoki1207.pdf",
86-
"vscode-icons-team.vscode-icons",
87-
"vstirbu.vscode-mermaid-preview",
88-
"wayou.vscode-todo-highlight",
89-
"yzane.markdown-pdf",
90-
"yzhang.dictionary-completion",
91-
"yzhang.markdown-all-in-one",
92-
"zoma.vscode-auto-open-workspace"
93-
],
94-
"settings": {
95-
"[makefile]": {
96-
"editor.detectIndentation": false,
97-
"editor.insertSpaces": false
98-
},
99-
"autoOpenWorkspace.enableAutoOpenIfSingleWorkspace": true,
100-
"editor.formatOnSave": true,
101-
"extensions.ignoreRecommendations": true,
102-
"files.insertFinalNewline": true
103-
}
104-
}
105-
},
106-
"mounts": [
107-
{
108-
"source": "/usr/local/share/ca-certificates",
109-
"target": "/home/ca-certificates",
110-
"type": "bind"
111-
},
112-
{
113-
"source": "${localEnv:HOME}/.aws",
114-
"target": "/home/vscode/.aws",
115-
"type": "bind"
116-
},
117-
{
118-
"source": "${localEnv:HOME}/.gitconfig",
119-
"target": "/home/vscode/.gitconfig",
120-
"type": "bind"
121-
},
122-
{
123-
"source": "${localEnv:HOME}/.gnupg",
124-
"target": "/home/vscode/.gnupg",
125-
"type": "bind"
126-
},
127-
{
128-
"source": "${localEnv:HOME}/.ssh",
129-
"target": "/home/vscode/.ssh",
130-
"type": "bind"
131-
}
132-
]
50+
"version": "1.0.8",
51+
"postCreateCommand": "echo 'NHS Notify FEATURE: Post Create Command'"
52+
13353
}

0 commit comments

Comments
 (0)