rhsummit2018camel3scalelab's People
Forkers
bontreger ryan-highley mattd72 mmonge kaiserahmed-isu sidd-harth weimeilin79 chirino eformat tiagoooliveira tiggerunix vaibhavjain4 vysyaras labamol ramu1523 monjurmorshedrhsummit2018camel3scalelab's Issues
Move step about fabric8 deployment configure file to OS step
I think at
https://github.com/mmistretta/RHSummit2018Camel3ScaleLab/tree/master/01-create-camel-route
The step about the fabric8 file: src/main/faric8/deployment.yml
Should be moved to the lab where you deploy to OS, eg 02.
Also I assume we add this to not let the pod take up too much resources on OS online.
Need m2 repository
I think we need some tutorials on how to setup the maven repository for the Fuse JARs to download.
If you run it vanilla with just Maven you end up with this error:
davsclaus:/Users/davsclaus/workspace/RHSummit2018Camel3ScaleLab/summit-example (polish)/$ mvn clean install
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/io/fabric8/fabric8-project-bom-camel-spring-boot/2.3.7.fuse-000036-redhat-2/fabric8-project-bom-camel-spring-boot-2.3.7.fuse-000036-redhat-2.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not find artifact io.fabric8:fabric8-project-bom-camel-spring-boot:pom:2.3.7.fuse-000036-redhat-2 in central (https://repo.maven.apache.org/maven2) @ line 29, column 19
[ERROR] 'dependencies.dependency.version' for javax.inject:javax.inject:jar is missing. @ line 40, column 17
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-spring-boot-starter:jar is missing. @ line 44, column 17
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-swagger-java-starter:jar is missing. @ line 48, column 21
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-servlet-starter:jar is missing. @ line 52, column 21
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-jackson-starter:jar is missing. @ line 56, column 17
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ line 60, column 17
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-actuator:jar is missing. @ line 64, column 17
[ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @ line 70, column 17
[ERROR] 'dependencies.dependency.version' for org.springframework:spring-test:jar is missing. @ line 75, column 17
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. @ line 80, column 17
[ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.junit:arquillian-junit-container:jar is missing. @ line 85, column 17
[ERROR] 'dependencies.dependency.version' for io.fabric8:fabric8-arquillian:jar is missing. @ line 90, column 17
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project my.project:summit-example:1.0-SNAPSHOT (/Users/davsclaus/workspace/RHSummit2018Camel3ScaleLab/summit-example/pom.xml) has 13 errors
[ERROR] Non-resolvable import POM: Could not find artifact io.fabric8:fabric8-project-bom-camel-spring-boot:pom:2.3.7.fuse-000036-redhat-2 in central (https://repo.maven.apache.org/maven2) @ line 29, column 19 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for javax.inject:javax.inject:jar is missing. @ line 40, column 17
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-spring-boot-starter:jar is missing. @ line 44, column 17
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-swagger-java-starter:jar is missing. @ line 48, column 21
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-servlet-starter:jar is missing. @ line 52, column 21
[ERROR] 'dependencies.dependency.version' for org.apache.camel:camel-jackson-starter:jar is missing. @ line 56, column 17
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ line 60, column 17
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-actuator:jar is missing. @ line 64, column 17
[ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @ line 70, column 17
[ERROR] 'dependencies.dependency.version' for org.springframework:spring-test:jar is missing. @ line 75, column 17
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. @ line 80, column 17
[ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.junit:arquillian-junit-container:jar is missing. @ line 85, column 17
[ERROR] 'dependencies.dependency.version' for io.fabric8:fabric8-arquillian:jar is missing. @ line 90, column 17
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Add slides to this repo
Mary can you export the slide as PDF and add to this repo, so people can find it here as well.
Make mvn spring-boot:run without fabric8 plugin activated
Hi
I think we should have a standalone step where people build the sample project without OS or fabric8 maven plugin. And run it locally with mvn spring-boot run.
Then when you go to deploy to openshift it talks about adding the fabric8-maven-plugin. And potentially configure the shell to use OS cluster (minishift docker-env) and for OS online you need to setup some ENV vars to point to that, or login via the oc client tool.
01 - Hello world json response
The Camel route is configured to return json payload. But the hello world message is just a text.
Its not valid json.
The response should be something alike
{ "reply": "Hello World" }
However there is an issue in that Camel where it will auto quote the response as well when using simple.
$ curl -i http://localhost:8080/camel/hello
HTTP/1.1 200
X-Application-Context: application
accept: */*
breadcrumbId: ID-ovpn-117-107-ams2-redhat-com-1525350385233-0-1
user-agent: curl/7.54.0
Content-Type: application/json
Transfer-Encoding: chunked
Date: Thu, 03 May 2018 12:26:29 GMT
"{ \"reply\": \"Hello World, Claus\" }"
The response body should just be
{ \"reply\": \"Hello World, Claus\" }
Update the readmes of the 1, 2, 3
The complete camel route has been polished and updated to be a bit more leaner. We should go over the readme files in the 01, 02, 03 folders and update them accordingly.
Also I think the f-m-p plugin should only be added when you have the "deploy to OS" step. All before that should be standalone - that is easier for people. eg get it running locallly, and then only thereafter "battle" with openshift/cloud world.
02 - Deploy to OS how to call the service
On this
https://github.com/mmistretta/RHSummit2018Camel3ScaleLab/tree/master/02-deploy-to-openshift
I think we need to add in the readme how you can call the Camel service on openshift and have the response back from curl or from the web browser, or from the link shown in the OS web console
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.