Changes testcontainers to not pull docker.io and switches to Arm64 builds #1277
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This follows advice from testcontainers to opt-out of incidental images
used until they are republished on a non rate-limited registry.
https://www.testcontainers.org/supported_docker_environment/image_registry_rate_limiting/
This also moves the build to the much faster arm64 config
Same as openzipkin/zipkin-reporter-java#192
Notes
gRPC 1.2's protoc doesn't support arm64
The version of google's protoc coupled with gRPC doesn't support arm64 until gRPC 1.9. Instead of interfering with our floor version, this checks in generated code. The generator works fine on amd64 (macbooks).
arm64 runs seems more sensitive to classpath glitches
We have had weird log4j2 -> jul bridge glitches in the past, but in arm64 it is more consistently flakey. We only need the bridge during integration tests, so there's now a classpath exclusion of the jul bridge otherwise.
mongodb needs an arm64 capable image
I had to build and publish an arm64-capable image of mongodb, using the last version packaged with alpine (so that the image can be smaller)
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openzipkin/mongodb-alpine:4.0.5 . --push