Skip to content

Commit

Permalink
Update tooling node version
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Oct 3, 2024
1 parent fc084a1 commit 45db80b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ These are the services that back our [Content API](https://developers.wellcomeco

![Architecture diagram](https://github.com/wellcomecollection/content-api/assets/4429247/b29a6bf5-f5af-426c-b827-550b84c5541c)

### Services
## Services

- `/pipeline`: runs on a schedule, queries for updated content, transforms it and puts it into an index in the content ES cluster.
- `/api`: queries the Elasticsearch index
- `/webhook`: a Lambda handler exposed via a function URL for handling Prismic webhook events and publishing them to a EventBridge bus
- `/unpublisher`: receives events published by the webhook, extracts document IDs from them and removes them from the ES index.

### Developing
## Developing

- Deployment is all done in CI, see `.buildkite/pipeline.yml`
- `husky` will set up a pre-commit hook for autoformatting when you first install dependencies
7 changes: 3 additions & 4 deletions tooling.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# TODO use node:20 and test
FROM public.ecr.aws/docker/library/node:18
FROM public.ecr.aws/docker/library/node:20

# Install Terraform (for formatting)
ARG TERRAFORM_VERSION=1.4.0
Expand All @@ -8,8 +7,8 @@ RUN wget -q -O /tmp/terraform.zip https://releases.hashicorp.com/terraform/${TER

# Install AWS CLI (v2)
RUN wget -q -O /tmp/awscliv2.zip https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip && \
unzip -q -o /tmp/awscliv2.zip -d /tmp/awscliv2 && \
/tmp/awscliv2/aws/install
unzip -q -o /tmp/awscliv2.zip -d /tmp/awscliv2 && \
/tmp/awscliv2/aws/install

RUN apt-get update && apt-get install -y zip && apt-get clean

Expand Down

0 comments on commit 45db80b

Please sign in to comment.