Skip to content

Commit dfe5054

Browse files
Merge branch 'main' into dependabot/maven/fasterxml.version-2.21
2 parents 47809ae + ca52ff1 commit dfe5054

47 files changed

Lines changed: 1609 additions & 1585 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/Dockerfile

Lines changed: 13 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,15 @@
1-
FROM mcr.microsoft.com/devcontainers/base:ubuntu
2-
3-
ARG TARGETARCH
4-
ENV TARGETARCH=${TARGETARCH}
5-
6-
ARG ASDF_VERSION
7-
COPY .tool-versions.asdf /tmp/.tool-versions.asdf
8-
9-
# Add amd64 architecture if on arm64
10-
RUN if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" = "aarch64" ]; then dpkg --add-architecture amd64; fi
11-
12-
RUN apt-get update \
13-
&& export DEBIAN_FRONTEND=noninteractive \
14-
&& apt-get -y dist-upgrade \
15-
&& apt-get -y install --no-install-recommends htop vim curl git build-essential \
16-
libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev libbz2-dev \
17-
zlib1g-dev unixodbc unixodbc-dev libsecret-1-0 libsecret-1-dev libsqlite3-dev \
18-
jq apt-transport-https ca-certificates gnupg-agent \
19-
software-properties-common bash-completion python3-pip make libbz2-dev \
20-
libreadline-dev libsqlite3-dev wget llvm libncurses5-dev libncursesw5-dev \
21-
xz-utils tk-dev liblzma-dev netcat-traditional ruby-full build-essential zlib1g-dev \
22-
&& apt remove -y openjdk-8-jdk-headless openjdk-8-jre-headless openjdk-8-jre
23-
24-
# Download correct AWS CLI for arch
25-
RUN if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" = "aarch64" ]; then \
26-
wget -O /tmp/awscliv2.zip "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip"; \
1+
ARG IMAGE_NAME=node_24_python_3_14_java_24
2+
ARG IMAGE_VERSION=latest
3+
FROM ghcr.io/nhsdigital/eps-devcontainers/${IMAGE_NAME}:${IMAGE_VERSION}
4+
5+
USER root
6+
# specify DOCKER_GID to force container docker group id to match host
7+
RUN if [ -n "${DOCKER_GID}" ]; then \
8+
if ! getent group docker; then \
9+
groupadd -g ${DOCKER_GID} docker; \
2710
else \
28-
wget -O /tmp/awscliv2.zip "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"; \
11+
groupmod -g ${DOCKER_GID} docker; \
2912
fi && \
30-
unzip /tmp/awscliv2.zip -d /tmp/aws-cli && \
31-
/tmp/aws-cli/aws/install && \
32-
rm /tmp/awscliv2.zip && rm -rf /tmp/aws-cli
33-
34-
# Download correct SAM CLI for arch
35-
RUN if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" = "aarch64" ]; then \
36-
wget -O /tmp/aws-sam-cli.zip "https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-arm64.zip"; \
37-
else \
38-
wget -O /tmp/aws-sam-cli.zip "https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip"; \
39-
fi && \
40-
unzip /tmp/aws-sam-cli.zip -d /tmp/aws-sam-cli && \
41-
/tmp/aws-sam-cli/install && \
42-
rm /tmp/aws-sam-cli.zip && rm -rf /tmp/aws-sam-cli
43-
44-
# Install ASDF
45-
RUN ASDF_VERSION=$(awk '!/^#/ && NF {print $1; exit}' /tmp/.tool-versions.asdf) && \
46-
if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" = "aarch64" ]; then \
47-
wget -O /tmp/asdf.tar.gz https://github.com/asdf-vm/asdf/releases/download/v${ASDF_VERSION}/asdf-v${ASDF_VERSION}-linux-arm64.tar.gz; \
48-
else \
49-
wget -O /tmp/asdf.tar.gz https://github.com/asdf-vm/asdf/releases/download/v${ASDF_VERSION}/asdf-v${ASDF_VERSION}-linux-amd64.tar.gz; \
50-
fi && \
51-
tar -xvzf /tmp/asdf.tar.gz && \
52-
mv asdf /usr/bin
53-
54-
55-
USER vscode
56-
57-
ENV PATH="/home/vscode/.asdf/shims/:$PATH"
58-
RUN \
59-
echo 'PATH="/home/vscode/.asdf/shims/:$PATH"' >> ~/.bashrc; \
60-
echo '. <(asdf completion bash)' >> ~/.bashrc; \
61-
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc; \
62-
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc; \
63-
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc;
64-
65-
# Install ASDF plugins
66-
RUN asdf plugin add python && \
67-
asdf plugin add poetry https://github.com/asdf-community/asdf-poetry.git && \
68-
asdf plugin add shellcheck https://github.com/luizm/asdf-shellcheck.git && \
69-
asdf plugin add java && \
70-
asdf plugin add maven && \
71-
asdf plugin add direnv && \
72-
asdf plugin add actionlint && \
73-
asdf plugin add nodejs;
74-
75-
WORKDIR /workspaces/validation-service-fhir-r4
76-
ADD .tool-versions /workspaces/validation-service-fhir-r4/.tool-versions
77-
ADD .tool-versions /home/vscode/.tool-versions
78-
79-
RUN asdf install python && \
80-
asdf install
13+
usermod -aG docker vscode; \
14+
fi
15+

.devcontainer/devcontainer.json

Lines changed: 66 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,68 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2-
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
31
{
4-
"name": "Ubuntu",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"build": {
7-
"dockerfile": "Dockerfile",
8-
"context": "..",
9-
"args": {}
10-
},
11-
"mounts": [
12-
"source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind",
13-
"source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind",
14-
"source=${env:HOME}${env:USERPROFILE}/.gnupg,target=/home/vscode/.gnupg,type=bind"
15-
],
16-
"customizations": {
17-
"vscode": {
18-
"extensions": [
19-
"AmazonWebServices.aws-toolkit-vscode",
20-
"redhat.vscode-yaml",
21-
"ms-python.python",
22-
"ms-python.flake8",
23-
"eamodio.gitlens",
24-
"github.vscode-pull-request-github",
25-
"orta.vscode-jest",
26-
"42crunch.vscode-openapi",
27-
"mermade.openapi-lint",
28-
"rvest.vs-code-prettier-eslint",
29-
"christian-kohler.npm-intellisense",
30-
"dbaeumer.vscode-eslint",
31-
"lfm.vscode-makefile-term",
32-
"GrapeCity.gc-excelviewer",
33-
"streetsidesoftware.code-spell-checker",
34-
"timonwong.shellcheck",
35-
"github.vscode-github-actions",
36-
"vscjava.vscode-java-pack"
37-
],
38-
"settings": {
39-
"python.defaultInterpreterPath": "/workspaces/eps-FHIR-validator-lambda/.venv/bin/python",
40-
"python.analysis.autoSearchPaths": true,
41-
"python.analysis.extraPaths": [],
42-
"python.testing.unittestEnabled": false,
43-
"python.testing.pytestEnabled": true,
44-
"python.linting.pylintEnabled": false,
45-
"python.linting.flake8Enabled": true,
46-
"python.linting.enabled": true, // required to format on save
47-
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
48-
"editor.formatOnPaste": false, // required
49-
"editor.formatOnType": false, // required
50-
"editor.formatOnSave": true, // optional
51-
"editor.formatOnSaveMode": "file",
52-
"cSpell.words": ["fhir", "Formik", "pino", "serialisation"]
53-
}
2+
"name": "eps-validator-lambda",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": "..",
6+
"args": {
7+
"DOCKER_GID": "${env:DOCKER_GID:}",
8+
"IMAGE_NAME": "node_24_python_3_14_java_24",
9+
"IMAGE_VERSION": "v1.4.9",
10+
"USER_UID": "${localEnv:USER_ID:}",
11+
"USER_GID": "${localEnv:GROUP_ID:}"
12+
}
13+
},
14+
"mounts": [
15+
"source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind",
16+
"source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind",
17+
"source=${env:HOME}${env:USERPROFILE}/.gnupg,target=/home/vscode/.gnupg,type=bind"
18+
],
19+
"customizations": {
20+
"vscode": {
21+
"extensions": [
22+
"AmazonWebServices.aws-toolkit-vscode",
23+
"redhat.vscode-yaml",
24+
"ms-python.python",
25+
"ms-python.flake8",
26+
"eamodio.gitlens",
27+
"github.vscode-pull-request-github",
28+
"orta.vscode-jest",
29+
"42crunch.vscode-openapi",
30+
"mermade.openapi-lint",
31+
"rvest.vs-code-prettier-eslint",
32+
"christian-kohler.npm-intellisense",
33+
"dbaeumer.vscode-eslint",
34+
"lfm.vscode-makefile-term",
35+
"GrapeCity.gc-excelviewer",
36+
"streetsidesoftware.code-spell-checker",
37+
"timonwong.shellcheck",
38+
"github.vscode-github-actions",
39+
"vscjava.vscode-java-pack"
40+
],
41+
"settings": {
42+
"python.defaultInterpreterPath": "/workspaces/eps-FHIR-validator-lambda/.venv/bin/python",
43+
"python.analysis.autoSearchPaths": true,
44+
"python.analysis.extraPaths": [],
45+
"python.testing.unittestEnabled": false,
46+
"python.testing.pytestEnabled": true,
47+
"python.linting.pylintEnabled": false,
48+
"python.linting.flake8Enabled": true,
49+
"python.linting.enabled": true,
50+
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
51+
"editor.formatOnPaste": false,
52+
"editor.formatOnType": false,
53+
"editor.formatOnSave": true,
54+
"editor.formatOnSaveMode": "file",
55+
"cSpell.words": [
56+
"fhir",
57+
"Formik",
58+
"pino",
59+
"serialisation"
60+
]
5461
}
55-
},
56-
"remoteEnv": { "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" },
57-
"postAttachCommand": "docker build -f https://raw.githubusercontent.com/NHSDigital/eps-workflow-quality-checks/refs/tags/v4.0.4/dockerfiles/nhsd-git-secrets.dockerfile -t git-secrets . && poetry run pre-commit install --install-hooks -f",
58-
"features": {
59-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
60-
"version": "latest",
61-
"moby": "true",
62-
"installDockerBuildx": "true"
63-
},
64-
"ghcr.io/devcontainers/features/github-cli:1": {}
65-
}
66-
}
67-
62+
}
63+
},
64+
"remoteEnv": {
65+
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
66+
},
67+
"features": {}
68+
}

.gitallowed

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/actions/mark_jira_released/action.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/actions/update_confluence_jira/action.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)