This module is an example of bundling a custom set of Connectors with Connector Runtime.
This bundle is built on top of our Connectors base image that includes pre-packaged runtime without any Connectors. You can find the Dockerfile for the base image in the connector-runtime-application module.
docker run --rm -it $(docker build -q .)
This will run a container built from the Dockerfile in this repo.
Add your custom connectors to the bundle similarly to
⚠️ As all Connectors share a single classpath, it can happen that different versions of the same dependency are available which can lead to conflicts. To prevent this, common dependencies likejackson
can be shaded and relocated inside the connector jar.An example of such relocation with
maven-shade-plugin
can be found in the Camunda 8 out-of-the-box Connectors repository.
Please refer to the base Connector Runtime image documentation for further information.
Another way to bundle Connectors with Connector Runtime is using Maven. In this case all version conflicts will be resolved by Maven, so relocating the common dependencies becomes irrelevant.
The Connectors Bundle project is an example of Maven bundle. It contains all available out-of-the-box Connectors provided by Camunda 8.