This folder contains the resources required to build a minimal Docker image of the 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.
- JDK version 17 or newer
- 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 lightstreamer-kafka-connector-<version> REPOSITORY TAG IMAGE ID CREATED SIZE lightstreamer-kafka-connector-<version> latest f77fc60f7892 13 minutes ago 602MB
-
Launch the container with:
$ docker run --name kafka-connector -d -p 8080:8080 lightstreamer-kafka-connector-<version>
-
Verify the container
Point your browser to http://localhost:8080 and see the Lightstreamer Welcome pages.