Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Lightstreamer Kafka Connector Docker Image

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.

Requirements:

  • JDK version 17 or newer
  • Docker

Instructions

  1. 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
  2. Run the following:

    $ ./build.sh

    which will:

    • Create and copy the distribution package to the tmp folder.
    • Build the Docker image.
  3. 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
  4. Launch the container with:

    $ docker run --name kafka-connector -d -p 8080:8080 lightstreamer-kafka-connector-<version>
  5. Verify the container

    Point your browser to http://localhost:8080 and see the Lightstreamer Welcome pages.