From 17df91454556eb3d44c473c498bf07f8fdf39a38 Mon Sep 17 00:00:00 2001 From: Nick Miles Date: Thu, 5 Nov 2026 11:17:14 +0000 Subject: [PATCH] ENG-1101 Load shared eng-central Copilot customisations in the dev container Mounts ~/.eng-central read-only and runs its setup script on container start, so skills, agents and instructions from NHSDigital/eng-central are available inside the container. If eng-central is not set up, an empty folder is mounted and nothing runs. --- .devcontainer/devcontainer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a01f1d5d..a3d78686 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -27,7 +27,10 @@ } }, "postCreateCommand": "pipx install pre-commit && make config && echo 'export GPG_TTY=$TTY' | cat - ~/.zshrc > temp && mv temp ~/.zshrc", + "postStartCommand": "bash -c '[ -x /opt/eng-central/scripts/setup.sh ] && /opt/eng-central/scripts/setup.sh --no-hooks --quiet || true'", + "initializeCommand": "bash -c 'mkdir -p ~/.eng-central'", "mounts": [ - "source=${localEnv:HOME}/.gnupg,target=/home/vscode/.gnupg,type=bind,consistency=cached" + "source=${localEnv:HOME}/.gnupg,target=/home/vscode/.gnupg,type=bind,consistency=cached", + "source=${localEnv:HOME}${localEnv:USERPROFILE}/.eng-central,target=/opt/eng-central,type=bind,readonly" ] }