-
Notifications
You must be signed in to change notification settings - Fork 24
Update apple/servicetalk #2689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update apple/servicetalk #2689
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| * | ||
| !Dockerfile | ||
| !pom.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # syntax=docker/dockerfile:1.26 | ||
| FROM debian:trixie-20260803@sha256:34cd9e9fd437c0a095ec39cb2e73422c9f30821b0d0848ed74fd0d43bae4d958 AS build | ||
|
|
||
| WORKDIR /app | ||
| RUN apt-get update \ | ||
| && apt-get install -y curl | ||
| RUN curl -fsSL -o servicetalk-grpc-protoc.jar https://repo1.maven.org/maven2/io/servicetalk/servicetalk-grpc-protoc/0.42.66/servicetalk-grpc-protoc-0.42.66-all.jar | ||
|
|
||
| FROM eclipse-temurin:25-jdk@sha256:e787e08ef76f4c16866108cd7f9fcd96a68eef3ac6cc76866897d4d02d5a2262 AS jre | ||
| RUN jlink --add-modules java.base,java.compiler,java.instrument,java.logging,java.management,jdk.unsupported \ | ||
| --strip-debug \ | ||
| --no-man-pages \ | ||
| --no-header-files \ | ||
| --generate-cds-archive \ | ||
| --output /jre \ | ||
| && rm /jre/lib/server/classes_nocoops.jsa | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is for very large heap sizes (well beyond what we allow in sandboxed builds). |
||
|
|
||
| FROM gcr.io/distroless/cc-debian13:latest@sha256:e86cf4f565c8eee2cbb2be073bb107dafb14734b53d5872da20fdf47418a02f4 AS base | ||
|
|
||
| FROM maven:3.9.11-eclipse-temurin-21 AS maven-deps | ||
| COPY pom.xml /tmp/pom.xml | ||
| RUN cd /tmp && mvn -f pom.xml dependency:go-offline | ||
|
|
||
| FROM scratch | ||
| COPY --from=base --link / / | ||
| COPY --from=jre --link /jre /jre | ||
| COPY --from=build --link --chmod=0755 --chown=root:root /app/servicetalk-grpc-protoc.jar . | ||
| COPY --from=maven-deps /root/.m2/repository /maven-repository | ||
| USER nobody | ||
| ENTRYPOINT [ "/jre/bin/java", "-jar", "/servicetalk-grpc-protoc.jar"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| version: v1 | ||
| name: buf.build/apple/servicetalk | ||
| plugin_version: v0.42.66 | ||
| source_url: https://github.com/apple/servicetalk | ||
| integration_guide_url: https://docs.servicetalk.io/ | ||
| description: A networking framework that evolves with your application. | ||
| deps: | ||
| - plugin: buf.build/protocolbuffers/java:v36.0 | ||
| output_languages: | ||
| - java | ||
| spdx_license_id: Apache-2.0 | ||
| license_url: https://github.com/apple/servicetalk/blob/0.42.66/LICENSE.txt | ||
| registry: | ||
| maven: | ||
| deps: | ||
| - io.servicetalk:servicetalk-data-protobuf:0.42.66 | ||
| - io.servicetalk:servicetalk-grpc-api:0.42.66 | ||
| - io.servicetalk:servicetalk-grpc-protobuf:0.42.66 | ||
| # Add direct dependency on newer protobuf | ||
| - com.google.protobuf:protobuf-java:4.36.0 | ||
| opts: | ||
| - javaDocs=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| <project> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <groupId>temp</groupId> | ||
| <artifactId>temp</artifactId> | ||
| <version>1.0</version> | ||
| <dependencies> | ||
| <dependency> | ||
| <groupId>io.servicetalk</groupId> | ||
| <artifactId>servicetalk-data-protobuf</artifactId> | ||
| <version>0.42.66</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.servicetalk</groupId> | ||
| <artifactId>servicetalk-grpc-api</artifactId> | ||
| <version>0.42.66</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.servicetalk</groupId> | ||
| <artifactId>servicetalk-grpc-protobuf</artifactId> | ||
| <version>0.42.66</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.google.protobuf</groupId> | ||
| <artifactId>protobuf-java</artifactId> | ||
| <version>4.36.0</version> | ||
| </dependency> | ||
| <!-- lite --> | ||
| <dependency> | ||
| <groupId>com.google.protobuf</groupId> | ||
| <artifactId>protobuf-javalite</artifactId> | ||
| <version>4.36.0</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>build.buf</groupId> | ||
| <artifactId>protobuf-javalite</artifactId> | ||
| <version>4.36.0</version> | ||
| </dependency> | ||
| </dependencies> | ||
| </project> |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/apple/servicetalk/v0.42.66/eliza/plugin.sum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| h1:NYeZ7ToFAxj19ghlA3mJsViXPM9XbNN8Bx1RKH3NlEs= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/apple/servicetalk/v0.42.66/petapis/plugin.sum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| h1:mKry8u/a08xQr8Up7uu+nyPAnr8QeVpYAyZbutNXPwo= |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should speed up code generation (enables class data sharing).