Coder Social home page Coder Social logo

rhsummit2018camel3scalelab's People

Contributors

bontreger avatar davsclaus avatar mmistretta avatar ryan-highley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rhsummit2018camel3scalelab's Issues

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.