- [GOPATH/ROOT setup]
- [CLONE EVENTCONTRIB]
- [Install KO]
- [Install Serverless Operator]
- [Create your SQS Queue]
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
{"comment":"This product is great","rating":5,"username":"john"} |
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
package com.example.demo; | |
public class UserReview { | |
private String comment; | |
private int rating; | |
private String username; | |
public UserReview() { } |
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
$ kn service create translator --image=<your_container_registry>/demo-app:v1 --autoscale-window 6s --revision-name=v1 | |
Creating service 'translator' in namespace 'serverless-demo': | |
0.406s The Route is still working to reflect the latest desired specification. | |
0.538s Configuration "translator" is waiting for a Revision to become ready. | |
7.126s ... | |
7.278s Ingress has not yet been reconciled. | |
7.450s Ready to serve. |
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
plugins { | |
id 'org.springframework.boot' version '2.3.1.RELEASE' | |
id 'io.spring.dependency-management' version '1.0.9.RELEASE' | |
id 'java' | |
id 'com.google.cloud.tools.jib' version "2.4.0" | |
} | |
group = 'com.example' | |
version = '0.0.1-SNAPSHOT' | |
sourceCompatibility = '1.8' |
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
@Bean | |
public Function<String, String> translate() { | |
return input -> { | |
final String fromLang = "en"; | |
final String toLang = "es"; | |
final String url = "https://translate.googleapis.com/translate_a/single?client=gtx&sl=" + fromLang + "&tl=" | |
+ toLang + "&dt=t&q=" + input; | |
final RestTemplate restTemplate = new RestTemplate(); | |
ResponseEntity<String> response = restTemplate.getForEntity(url, String.class); |
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
curl https://start.spring.io/starter.tgz -d dependencies=web,actuator,cloud-function -d language=java -d type=gradle-project -d baseDir=my-function-project | tar -xzvf - |
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
The Java EE 6 Tutorial: Advanced Topics (4th Edition) - 978-0137081868 | |
The Java EE 7 Tutorial: Volume 1 (5th Edition) (Java Series) - 978-0321994929 | |
The Java EE 7 Tutorial: Volume 2 (5th Edition) (Java Series) - 978-0321980083 | |
Getting Started with Oracle WebLogic Server 12c: Developer's Guide - 978-1849686969 |
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
# Softwares for Mac | |
## Window Management | |
brew cask install amethyst | |
## |
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
+ logger-nrrlt-1-deployment-5969b6d7f5-bqrb5 › user-container | |
+ logger-nrrlt-1-deployment-5969b6d7f5-bqrb5 › queue-proxy | |
logger-nrrlt-1-deployment-5969b6d7f5-bqrb5 queue-proxy {"level":"info","ts":"2020-04-22T17:09:31.522Z","caller":"logging/config.go:108","msg":"Successfully created the logger."} | |
logger-nrrlt-1-deployment-5969b6d7f5-bqrb5 queue-proxy {"level":"info","ts":"2020-04-22T17:09:31.522Z","caller":"logging/config.go:109","msg":"Logging level set to info"} | |
logger-nrrlt-1-deployment-5969b6d7f5-bqrb5 queue-proxy {"level":"info","ts":"2020-04-22T17:09:31.522Z","caller":"logging/config.go:76","msg":"Fetch GitHub commit ID from kodata failed: \"KO_DATA_PATH\" does not exist or is empty"} | |
logger-nrrlt-1-deployment-5969b6d7f5-bqrb5 user-container ☁️ cloudevents.Event | |
logger-nrrlt-1-deployment-5969b6d7f5-bqrb5 queue-proxy {"level":"info","ts":"2020-04-22T17:09:31.523Z","logger":"queueproxy","caller":"metrics/exporter.go:126","msg":"Flushing the existing exporter before setting up the new exporter.","knative |