Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nodejs 24.12.0
nodejs 24.13.0
python 3.14.2
poetry 2.2.1
shellcheck 0.10.0
Expand Down
10 changes: 5 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ RUN apt-get update \
# install aws stuff
# Download correct AWS CLI for arch
RUN if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" == "aarch64" ]; then \
wget -O /tmp/awscliv2.zip "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip"; \
wget -O /tmp/awscliv2.zip "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip"; \
else \
wget -O /tmp/awscliv2.zip "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"; \
wget -O /tmp/awscliv2.zip "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"; \
fi && \
unzip /tmp/awscliv2.zip -d /tmp/aws-cli && \
/tmp/aws-cli/aws/install && \
Expand All @@ -28,9 +28,9 @@ RUN if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" == "aarch64" ]; then \
# Install ASDF
RUN ASDF_VERSION=$(awk '!/^#/ && NF {print $1; exit}' /tmp/.tool-versions.asdf) && \
if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" = "aarch64" ]; then \
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; \
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; \
else \
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; \
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; \
fi && \
tar -xvzf /tmp/asdf.tar.gz && \
mv asdf /usr/bin
Expand All @@ -45,7 +45,7 @@ ENV PATH="$PATH:/home/cdkuser/.asdf/shims/:/home/cdkuser/node_modules/.bin"
# Install ASDF plugins
RUN asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
# install some common node versions that are used in builds to speed things up
RUN asdf install nodejs 22.20.0;
RUN asdf install nodejs 24.13.0

# copy files needed for deployment
COPY --chown=cdkuser docker/entrypoint.sh /home/cdkuser/
Expand Down
9 changes: 3 additions & 6 deletions packages/deploymentUtils/src/specifications/fixSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,12 @@ export function fixSpec({
instance = `${apiName}-pr-${pr_id}`
spec.info.title = `[PR-${pr_id}] ${spec.info.title}`
spec["x-nhsd-apim"].monitoring = false
delete spec["x-nhsd-apim"].target.security.secret
} else {
if (blueGreen) {
stack = calculateVersionedStackName(stackName, version)
}
spec["x-nhsd-apim"].target.security.secret = mtlsSecretName
} else if (blueGreen) {
stack = calculateVersionedStackName(stackName, version)
}
spec.info.version = version
spec["x-nhsd-apim"].target.url = `https://${stack}.${awsEnvironment}.eps.national.nhs.uk`
spec["x-nhsd-apim"].target.security.secret = mtlsSecretName
if (apigeeEnvironment === "prod") {
spec.servers = [ {url: `https://api.service.nhs.uk/${instance}`} ]
replaceSchemeRefs(spec, "proxygen.prod.api.platform.nhs.uk")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ describe("fixSpec", () => {
expect(instance).toBe("eps-pr-456")
expect(spec.info.title).toBe("[PR-456] EPS API")
expect(spec["x-nhsd-apim"].monitoring).toBe(false)
expect(spec["x-nhsd-apim"].target.security.secret).toBeUndefined()
expect(spec["x-nhsd-apim"]["target-attributes"]).toBeUndefined()
expect(spec.servers[0].url)
.toBe("https://sandbox.api.service.nhs.uk/eps-pr-456")
Expand Down