This folder contains the resources required to build a minimal Docker image of Lightstreamer Kafka Connector.
The image is built by deriving the official Lightstreamer Docker image with the current version of the Kafka Connector. Check out the Dockerfile
for more details.
- Java 17
- Docker
-
Copy into the
resources
folder any customizable Kafka Connector resource, such as:adapters.xml
log4j.properties
(or any other referenced log configuration file)- local schema, key store, and trust store files referenced in
adapters.xml
-
Run the following:
$ ./build.sh
which will:
- create and copy the distribution package to the
tmp
folder - build the Docker image
- create and copy the distribution package to the
-
Check that the image has been created:
$ docker image ls kafka-connector-<version> REPOSITORY TAG IMAGE ID CREATED SIZE lightstreamer-kafka-connector-0.1.0 latest f77fc60f7892 13 minutes ago 602MB
-
Launch the container with:
$ docker run --name kafka-connector -d -p 8080:8080 lightstreamer-kafka-connector-<version>
-
Check the logs:
$ docker logs -f kafka-connector