Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.39 KB

File metadata and controls

49 lines (32 loc) · 1.39 KB

Lightstreamer Kafka Connector Docker Image

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.

Requirements:

  • Java 17
  • 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. Check the logs:

    $ docker logs -f kafka-connector