ramu11 opened a new pull request, #30559:
URL: https://github.com/apache/camel/pull/30559
## Description
This PR adds Tomcat runtime support to Camel JBang project export, including
Kubernetes deployment support using Spring Boot WAR packaging.
### What is implemented
- **Tomcat runtime support**
- Adds `tomcat` as a supported export runtime.
- Updates runtime type conversion, completion candidates and CLI options
to support Tomcat.
- Integrates Tomcat runtime handling into the Camel JBang export pipeline.
- **Spring Boot WAR export**
- Adds dedicated Spring Boot Tomcat export templates.
- Configures WAR packaging for deployment to an external Tomcat server.
- Generates the required Spring Boot application and Maven configuration.
- **Kubernetes export support**
- Adds a dedicated Tomcat Kubernetes POM template.
- Configures the WAR deployment into `/usr/local/tomcat/webapps`.
- Deploys the application as `ROOT.war`.
- Preserves the startup command inherited from the Tomcat base image
instead of overriding its entry point.
- **Tests**
- Adds Tomcat export integration tests for Tomcat 9 and Tomcat 10.
- Extends Kubernetes export tests to validate WAR packaging, deployment
directory, `ROOT.war` naming and inherited container startup configuration.
- Adds runtime type converter and project exporter test coverage.
- Updates Maven Failsafe configuration to execute the `verify` goal.
- **Documentation**
- Updates Camel JBang project export and Kubernetes documentation.
- Updates CLI command documentation for the Tomcat runtime.
### Testing
The following Maven commands were executed successfully after rebasing on
`upstream/main`.
**1. Build Camel JBang Core and required reactor modules**
```bash
mvn -pl dsl/camel-jbang/camel-jbang-core -am \
-DskipTests process-classes
```
Result: BUILD SUCCESS.
**2. Run Kubernetes export regression tests**
```bash
mvn -pl dsl/camel-jbang/camel-jbang-plugin-kubernetes -am \
-Dtest=KubernetesExportTest \
-Dsurefire.failIfNoSpecifiedTests=false test
```
Result:
- Tests run: 84
- Failures: 0
- Errors: 0
- Skipped: 0
BUILD SUCCESS.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]