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
$ gradle bootRun | |
> Task :bootRun | |
... | |
... | |
<=========----> 75% EXECUTING [21s] | |
> :bootRun |
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
io.quarkus.builder.BuildException: Build failure: Too many default routes. | |
at io.quarkus.vertx.http.deployment.VertxHttpProcessor.finalizeRouter(VertxHttpProcessor.java:143) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.base/java.lang.reflect.Method.invoke(Method.java:566) | |
at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:932) | |
at io.quarkus.builder.BuildContext.run(BuildContext.java:277) | |
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) | |
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2046) |
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
$ curl https://preview-translator-serverless-demo.apps.ci-ln-7vhysib-d5d6b.origin-ci-int-aws.dev.rhcloud.com/translateReview -X POST -H "Content-Type: application/json" -d @<path_to>/review.json | |
{"comment":"Este producto es genial","rating":5,"username":"john"}% |
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
$ curl https://preview-translator-serverless-demo.apps.ci-ln-7vhysib-d5d6b.origin-ci-int-aws.dev.rhcloud.com/translateReview -X POST -H "Content-Type: application/json" -d @<path_to>/review.json | |
{"comment":"Este producto es genial","rating":5,"username":"john"}% | |
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
$ curl https://translator-<namespace>.apps.<cluster>.<domain>.org -H "Content-Type: text/plain" -d "This is my second test" | |
"Esta es mi segunda prueba" | |
... | |
$ curl https://translator-<namespace>.apps.<cluster>.<domain>.org -H "Content-Type: text/plain" -d "This is my house" | |
"Esta es mi casa" | |
... |
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
$ curl http://localhost:8080/translateReview -X POST -H "Content-Type: application/json" -d @<path_to>/review.json | |
{"comment":"Este producto es genial","rating":5,"username":"john"}% |
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
$ curl http://localhost:8080/translate -H "Content-Type: text/plain" -d "Hello" | |
"Hola" | |
$ curl http://localhost:8080/translate -H "Content-Type: text/plain" -d "This is a test" | |
"Esto es una prueba" |
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
$ gradle build jib --image=markito/demo-app:v1 | |
Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details | |
> Task :jib | |
Containerizing application to markito/demo-app:v1... | |
Base image 'gcr.io/distroless/java:8' does not use a specific image digest - build may not be reproducible | |
... | |
Using base image with digest: sha256:7cef6d99241bc86e09659d41842e3656a1cab99adf0e440a44d2858c8e52a71a |
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
$ kn service update translator --image=<your_container_registry>/demo-app:v2 --traffic translator-v1=100 --tag @latest=preview | |
Updating Service 'translator' in namespace 'serverless-demo': | |
0.493s The Route is still working to reflect the latest desired specification. | |
0.754s Ingress has not yet been reconciled. | |
6.843s Traffic is not yet migrated to the latest revision. | |
7.041s Ingress has not yet been reconciled. | |
7.150s Ready to serve. |
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
@Bean | |
public Function<UserReview, UserReview> translateReview() { | |
return input -> { | |
final UserReview output = input; | |
output.setComment(translate().apply(input.getComment())); | |
return output; | |
}; | |
} |
NewerOlder