Building your connector image
To build your new connectors Docker image, you need to use the remote-engine-customizer tool.
This tool that reads the engine docker-compose.yml file, extracts the connectors image and rebuilds it adding configured connectors/processors to the image. By default, it replaces the original image with the newly built one and saves the old file in the .remote_engine_customizer/backup/ directory of the Remote Engine Gen2.
To get more information about the tool, run this command: docker run tacokit/remote-engine-customizer:${version} help
Procedure
Results
Example of
console output where the image ID is
e761f26e4adb:20191206151130452:
docker run \
-v /opt/my-remote-engine:/opt/re \
-v /opt/dev/my-component:/opt/exchange \
-v /var/run/docker.sock:/var/run/docker.sock \
tacokit/remote-engine-customizer:1.1.15 \
register-component-archive \
--remote-engine-dir=/opt/re \
--component-archive=/opt/exchange/target/custom-components-0.0.1-SNAPSHOT.car
[INFO] Building image 'e761f26e4adb:20191206151130452' from 'e761f26e4adb' adding [/opt/exchange/target/test-components-0.0.1-SNAPSHOT.car]
[INFO] Looking for component-registry.properties configuration, this can be a bit long...
[INFO] Building image 'e761f26e4adb:20191206151130452'
[INFO] Restart your remote engine to take into account the new connector image