Skip to content

Commit 840dce2

Browse files
update to not duplicate feature ref, and fail make config gracefully.
1 parent e632248 commit 840dce2

File tree

4 files changed

+10
-24
lines changed

4 files changed

+10
-24
lines changed

src/devcontainers/loaded-codespaces/.devcontainer/devcontainer.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,13 @@
1313
"postStartCommand": "echo ${localEnv:CONTAINER_NAME} Started",
1414

1515
"features": {
16-
"ghcr.io/nhsdigital/nhs-notify-devcontainers/nhsnotify:1.0.25": {}
16+
"ghcr.io/nhsdigital/nhs-notify-devcontainers/nhsnotify:1.0.26": {}
1717
},
1818
"runArgs": [
1919
"--platform=linux/amd64"
2020
],
2121
"forwardPorts": [
2222
4000
2323
],
24-
"remoteUser": "vscode",
25-
"containerEnv": {
26-
"UPDATEFROMTEMPLATE": "true",
27-
"SHOWWELCOME": "true",
28-
"MAKECONFIG": "true",
29-
"GITHUBMONITOR": "true"
30-
}
24+
"remoteUser": "vscode"
3125
}

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,15 @@
1111
},
1212
"postCreateCommand": "echo ${localEnv:CONTAINER_NAME} Created",
1313
"postStartCommand": "echo ${localEnv:CONTAINER_NAME} Started",
14-
"features": {
15-
"ghcr.io/nhsdigital/nhs-notify-devcontainers/nhsnotify:1.0.24": {}
16-
},
14+
1715
"runArgs": [
1816
"--platform=linux/amd64"
1917
],
2018
"forwardPorts": [
2119
4000
2220
],
2321
"remoteUser": "vscode",
24-
"containerEnv": {
25-
"UPDATEFROMTEMPLATE": "true",
26-
"SHOWWELCOME": "true",
27-
"MAKECONFIG": "true",
28-
"GITHUBMONITOR": "true"
29-
},
22+
3023
"initializeCommand": "touch $HOME/.gitconfig || true && mkdir -p $HOME/.aws || true && mkdir -p $HOME/.gnupg || true && mkdir -p $HOME/.ssh || true",
3124
"mounts": [
3225
{
@@ -54,5 +47,5 @@
5447
"target": "/home/vscode/.ssh",
5548
"type": "bind"
5649
}
57-
],
50+
]
5851
}

src/features/nhsnotify/devcontainer-feature.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"containerEnv": {
3-
"UPDATEFROMTEMPLATE": "true",
4-
"SHOWWELCOME": "true",
3+
"UPDATEFROMTEMPLATE": "false",
4+
"SHOWWELCOME": "false",
55
"MAKECONFIG": "true",
6-
"GITHUBMONITOR": "true"
6+
"GITHUBMONITOR": "false"
77
},
88
"id": "nhsnotify",
99
"name": "NHS Notify",
10-
"version": "1.0.25",
10+
"version": "1.0.26",
1111
"dependsOn": {
1212
"ghcr.io/devcontainers/features/common-utils:2.5.4": {
1313
"configureZshAsDefaultShell": true,

src/features/nhsnotify/scripts/makeconfig.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ fi
99

1010
echo "running make config"
1111
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
12-
make config
13-
echo "make config complete"
12+
make config && echo "make config complete" || echo "make config failed"

0 commit comments

Comments
 (0)