Skip to content

Chore: [AEA-0000] - move to common dev container#98

Merged
anthony-nhs merged 10 commits intomainfrom
common_dev_container
Mar 20, 2026
Merged

Chore: [AEA-0000] - move to common dev container#98
anthony-nhs merged 10 commits intomainfrom
common_dev_container

Conversation

@anthony-nhs
Copy link
Contributor

Summary

  • Routine Change

Details

  • move to common dev container

Copilot AI review requested due to automatic review settings March 18, 2026 10:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the repo’s local development and CI setup to the shared “common devcontainer” approach, removing in-repo asdf/tool-version management and switching CI workflows to the devcontainer-based common workflows.

Changes:

  • Update GitHub workflows to use get-repo-config + devcontainer-based quality checks/tagging workflows.
  • Replace the local devcontainer build with the shared ghcr.io/nhsdigital/eps-devcontainers/* base image and adjust git-secrets integration.
  • Remove asdf/tool-version files and local license-check automation.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
scripts/check_python_licenses.sh Removed local pip-licenses script used for license compatibility checks.
Makefile Removes check-licenses target from make commands.
.tool-versions.asdf Removed asdf version pin file.
.tool-versions Removed tool pin file (python/poetry/etc.).
.pre-commit-config.yaml Runs git-secrets directly rather than via Docker.
.github/workflows/release.yaml Migrates release pipeline to devcontainer-based common workflows and containerized build.
.github/workflows/pull_request.yaml Migrates PR pipeline to devcontainer-based common workflows.
.github/workflows/ci.yaml Migrates CI pipeline to devcontainer-based common workflows.
.github/actions/install_dependencies/action.yaml Removes composite action that installed dependencies via asdf.
.github/actions/get_asdf_version/action.yaml Removes composite action that read asdf version from .tool-versions.asdf.
.devcontainer/devcontainer.json Updates devcontainer config to build from shared image args and change git-secrets setup command.
.devcontainer/Dockerfile Switches to shared devcontainer base image and attempts docker group/GID alignment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

with:
asdf_version: ${{ needs.get_asdf_version.outputs.version }}

uses: actions/checkout@v6
Comment on lines 6 to 11
build:
poetry build

check-licenses:
scripts/check_python_licenses.sh

clean:
rm -rf dist
rm -rf htmlcov
Comment on lines 6 to 11
build:
poetry build

check-licenses:
scripts/check_python_licenses.sh

clean:
rm -rf dist
rm -rf htmlcov
Comment on lines 6 to 11
build:
poetry build

check-licenses:
scripts/check_python_licenses.sh

clean:
rm -rf dist
rm -rf htmlcov
Comment on lines 21 to 28
- id: git-secrets
name: Git Secrets
description: git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
entry: bash
args:
- -c
- 'docker run -v "$LOCAL_WORKSPACE_FOLDER:/src" git-secrets --pre_commit_hook'
- 'git-secrets --pre_commit_hook'
language: system
Comment on lines +5 to +10
USER root
# specify DOCKER_GID to force container docker group id to match host
RUN if [ -n "${DOCKER_GID}" ]; then \
if ! getent group docker; then \
groupadd -g ${DOCKER_GID} docker; \
else \
Comment on lines +9 to +11
"IMAGE_VERSION": "v1.1.3",
"USER_UID": "${localEnv:USER_ID:}",
"USER_GID": "${localEnv:GROUP_ID:}"
@github-actions
Copy link
Contributor

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-0000

@sonarqubecloud
Copy link

@anthony-nhs anthony-nhs merged commit ce3fb13 into main Mar 20, 2026
12 checks passed
@anthony-nhs anthony-nhs deleted the common_dev_container branch March 20, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants