nicolaferraro commented on issue #108: Add a dev's mode to kamel command to push project directly within the pod URL: https://github.com/apache/camel-k/issues/108#issuecomment-423112632 That is cool @cmoulliard! I was looking for something like "go supervisord" to startup the container directly, but I didn't know about it. At the moment, we are trying to improve performance in the "general case", i.e. not only when running in dev mode. If we don't get acceptable results with that (I mean, first-time deployment is currently not so fast...), I think we can look into "go supervisord" to always skip the build process. But I think the approach we are currenlty using is promising... We have added a `--dev` flag to Camel K `0.0.2`. When you run `kamel run Sample.java --dev`, the client tool listens to changes in the source file and republishes the integration automatically. Current performances are good on Minishift. The integration is **redeployed in 1 second**. This is because in `0.0.2` we already don't build the application docker image, instead we build a docker image of the dependencies (the jars). We then load the integration code at runtime. Each time you deploy/redeploy a integration, the operator looks for a image that already contains the required dependencies to reuse it. It can be a image built for a different integration or also a image built for a previous version of the same integration, if you just changed the code without changing the dependencies. This mechanism works good with Camel, because people tend to use a common set of Camel components for all their integrations in a given company environment, depending on what systems they need to integrate. Also, this way, we don't need to rebuild the integration when we exit `--dev` mode (because a docker image is present for it, the structure of a dev container and a prod container is the same). As said, the approach has a penalty because the first time you use a different set of dependencies, a new image needs to be created, no matter if you're in dev mode or prod mode.. We're trying to improve that build time now..
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
