Skip to content

Containerised distribution of Guardian main branch#11

Draft
tonytw1 wants to merge 77 commits into
mainfrom
containerised
Draft

Containerised distribution of Guardian main branch#11
tonytw1 wants to merge 77 commits into
mainfrom
containerised

Conversation

@tonytw1
Copy link
Copy Markdown
Member

@tonytw1 tonytw1 commented Jul 29, 2024

What does this change?

Produces container images for a generalised Grid install based on the Guardian's main branch.

Reasonably opinionated towards "we use AWS services but we don't necessarily run the application on AWS".

  • Disables AWS CloudWatch and Kineses metrics to simplify the AWS dependencies.
  • Switches to ENV variable access tokens for AWS access
  • Alters the service URL scheme to present the Grid microservices under a single hostname (which makes local development and deployment behind a single load balancer simpler)
  • Removes the InnerServiceStatusCheckController as this is less relevant if deployed with a container orchastator.
  • Simplifies Reaper configuration to not need an additional S3 bucket.
  • Removes Guardian specific Composer usage stream consumer and Guardian Content API integration. The Usage API remains intact.
  • Migrates to imgproxy for image previews. Does not build imgops.

How should a reviewer test this change?

How can success be measured?

Who should look at this?

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

@tonytw1 tonytw1 force-pushed the containerised branch 2 times, most recently from b0942e9 to 887a0ca Compare August 6, 2024 17:35
@tonytw1 tonytw1 force-pushed the containerised branch 2 times, most recently from 5b3abf6 to 5df2f75 Compare August 30, 2024 19:54
@tonytw1 tonytw1 force-pushed the containerised branch 6 times, most recently from db06496 to 8f64bac Compare September 8, 2024 21:01
@tonytw1 tonytw1 force-pushed the containerised branch 7 times, most recently from e8ad009 to 3ce864b Compare September 25, 2024 11:37
@tonytw1 tonytw1 force-pushed the containerised branch 3 times, most recently from 4810e23 to 779c5c4 Compare October 11, 2024 20:39
tonytw1 added 30 commits May 7, 2026 21:19
…its.UsageRights not always been available on the JSON edits record.

Editing the metadata of an image with no usage rights overrides seems to remove the field, causing getUsageRights to start HTTP 500 erroring.
matchUsageGroup using hashKeyName placeholder to avoid grouping reserved keyword.
Guava is an undeclared transitive dependency used directly in source code.

2 files use Guava APIs directly:
  1. common-lib/src/main/java/com/gu/mediaservice/DeprecatedHashWrapper.java:3 — imports com.google.common.hash.HashFunction / Hashing
  2. image-loader/app/lib/Downloader.scala:6 — imports com.google.common.hash.HashingOutputStream and com.google.common.io.ByteStreams

  But Guava is never explicitly declared in build.sbt. It only arrives transitively — almost certainly from aws-java-sdk-* (v1).
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.

1 participant