-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
istio-interop-testing: create a separate project and add istio echo s…
…erver code (#9321) * istio-interop-testing: create a separate project and add istio echo server code after removing from the grpc-interop-testing project * add jib support * use imported echo.proto from istio repo * use context to propagate values from interceptor so the service's echo method has all values required to compose EchoResponse
- Loading branch information
1 parent
377e3ce
commit 6271bab
Showing
9 changed files
with
1,340 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,68 @@ | ||
plugins { | ||
id "application" | ||
id "java" | ||
|
||
id "com.google.protobuf" | ||
id 'com.google.cloud.tools.jib' | ||
} | ||
|
||
description = "gRPC: Istio Interop testing" | ||
|
||
configurations { | ||
alpnagent | ||
} | ||
|
||
evaluationDependsOn(project(':grpc-context').path) | ||
|
||
dependencies { | ||
implementation project(':grpc-core'), | ||
project(':grpc-netty'), | ||
project(':grpc-protobuf'), | ||
project(':grpc-services'), | ||
project(':grpc-stub'), | ||
project(':grpc-testing') | ||
|
||
compileOnly libraries.javax.annotation | ||
|
||
runtimeOnly libraries.netty.tcnative, | ||
libraries.netty.tcnative.classes | ||
testImplementation project(':grpc-context').sourceSets.test.output, | ||
project(':grpc-api').sourceSets.test.output, | ||
project(':grpc-core').sourceSets.test.output, | ||
libraries.mockito.core, | ||
libraries.junit, | ||
libraries.truth | ||
alpnagent libraries.jetty.alpn.agent | ||
} | ||
|
||
sourceSets { | ||
main { | ||
proto { | ||
srcDir 'third_party/istio/src/main/proto' | ||
} | ||
} | ||
} | ||
|
||
configureProtoCompilation() | ||
|
||
import net.ltgt.gradle.errorprone.CheckSeverity | ||
|
||
compileJava { | ||
// This isn't a library; it can use beta APIs | ||
options.errorprone.check("BetaApi", CheckSeverity.OFF) | ||
} | ||
|
||
|
||
// For releasing to Docker Hub | ||
jib { | ||
from.image = "gcr.io/distroless/java:8" | ||
container { | ||
ports = ['50051'] | ||
mainClass="io.grpc.testing.istio.EchoTestServer" | ||
} | ||
outputPaths { | ||
tar = 'build/istio-echo-server.tar' | ||
digest = 'build/istio-echo-server.digest' | ||
imageId = 'build/istio-echo-server.id' | ||
} | ||
} |
Oops, something went wrong.