File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 " --network=host"
2323 ],
2424 "remoteEnv" : { "LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}" },
25- "postCreateCommand" : " bash .devcontainer/../scripts/install-git-secrets.sh" ,
25+ "postCreateCommand" : " bash ${SCRIPTS_DIR}/postCreate.sh" ,
26+ "postStartCommand" : " bash ${SCRIPTS_DIR}/postStart.sh" ,
27+ "postAttachCommand" : " bash ${SCRIPTS_DIR}/postAttach.sh" ,
2628 "features" : {
2729 },
2830 "customizations" : {
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ ENV CONTAINER_NAME=${CONTAINER_NAME}
2121ENV TARGETARCH=${TARGETARCH}
2222
2323COPY .tool-versions.asdf ${SCRIPTS_DIR}/${CONTAINER_NAME}/.tool-versions.asdf
24+ COPY --chmod=755 scripts/lifecycle/*.sh ${SCRIPTS_DIR}/
2425COPY --chmod=755 scripts/root_install.sh ${SCRIPTS_DIR}/${CONTAINER_NAME}/root_install.sh
2526COPY --chmod=755 Mk ${SCRIPTS_DIR}/Mk
2627
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Script to run as devcontainer postAttachCommand
3+
4+ # currently empty
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ # Script to run as devcontainer postCreateCommand
3+
4+ # Install git-secrets, register AWS patterns and NHS rules in an idempotent way
25if ! git config --get-all secrets.patterns | grep -Fq AKIA; then
36 git-secrets --register-aws
47fi
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Script to run as devcontainer postStartCommand
3+
4+ # currently empty
You can’t perform that action at this time.
0 commit comments