Skip to content

Commit d7ffa26

Browse files
committed
only run post* scripts once
1 parent e7e7eda commit d7ffa26

15 files changed

Lines changed: 7 additions & 36 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
"--network=host"
2323
],
2424
"remoteEnv": { "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" },
25-
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
26-
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
27-
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
2825
"features": {
2926
},
3027
"customizations": {

src/base/.devcontainer/scripts/lifecycle/post_attach.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
# Script to run as devcontainer postAttachCommand
33
set -euo pipefail
44

5+
echo "Running common post-attach script"
6+
57
# currently empty

src/base/.devcontainer/scripts/lifecycle/post_create.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Script to run as devcontainer postCreateCommand
33
set -euo pipefail
44

5+
echo "Running common post-create script"
6+
7+
58
# Install git-secrets, register AWS patterns and NHS rules in an idempotent way
69
if ! git config --get-all secrets.patterns | grep -Fq AKIA; then
710
git-secrets --register-aws

src/base/.devcontainer/scripts/lifecycle/post_start.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
# Script to run as devcontainer postStartCommand
33
set -euo pipefail
44

5+
echo "Running common post-start script"
6+
57
# currently empty

src/base_node/node_24/.devcontainer/devcontainer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
},
1414
"context": "."
1515
},
16-
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17-
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18-
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1916
"features": {}
2017
}
2118

src/languages/node_24_python_3_10/.devcontainer/devcontainer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
},
1414
"context": "."
1515
},
16-
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17-
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18-
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1916
"features": {}
2017
}
2118

src/languages/node_24_python_3_12/.devcontainer/devcontainer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
},
1414
"context": "."
1515
},
16-
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17-
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18-
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1916
"features": {}
2017
}
2118

src/languages/node_24_python_3_13/.devcontainer/devcontainer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
},
1414
"context": "."
1515
},
16-
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17-
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18-
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1916
"features": {}
2017
}
2118

src/languages/node_24_python_3_14/.devcontainer/devcontainer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
},
1414
"context": "."
1515
},
16-
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17-
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18-
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1916
"features": {}
2017
}
2118

src/projects/eps-data-extract/.devcontainer/devcontainer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
},
1414
"context": "."
1515
},
16-
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17-
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18-
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1916
"features": {}
2017
}
2118

0 commit comments

Comments
 (0)