Cloud API Services Platform
Cloud Data Fabric
Data Services Platform
Real-Time Big Data Platform
About this task
To build a Route to a Spring-boot based ESB Microservice Docker image, complete the following:
Open the Route in the design work space. In the Deployment view of the Job tab, select RouteMicroservice in the Build Type list. Save the Route.
In the Repository tree view, right-click the Route you want to build, and select Build Route to open the Build Route dialog box.
- In the Route Version area, select the version you want to build if you have created more than one version of the Route.
- In the Build type area, select Microservice (Spring-boot) for ESB Docker image to build your Route as a Microservice Docker image.
In the options area, select:
- The Only export the default context option to export only the default context used in the Route.
- The Enable Prometheus metrics endpoint check box to build the Prometheus metrics endpoint into the Microservice to monitor the execution of Routes, JVM memory, CPU consumption, and so on. By default, this feature bridges all the JMX attributes and values into Prometheus. For more information about Prometheus, see the documentation.
Select Local or specify a remote address based on your Docker engine installation.
Warning: If you select the Remote option, make sure that Docker deamon is started with a remote port.
Specify your Docker image name, and image tag.
By default, the image name is derived from the project name and Route name, and the image tag is derived from the version of the Route. You can specify a new name and tag here or customize the default settings globally in Project Settings. For more information, see Customizing Docker images build settings.Warning: Underscore characters are not supported in Docker image names, therefore make sure the Docker image name value does not contain underscore characters.
- Click Finish to build your Microservice Docker image.
You Route is build as a Microservice (Spring-boot) for ESB Docker image and ready to run on your Docker engine.