Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
gfinocchiaro committed Mar 11, 2024
1 parent b967fc4 commit 2151d0d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM lightstreamer
# The Kafka Connector project version
ARG VERSION

ENV KAFKA_CONNECTOR_NAME=lightstreamer-kafka-connector-deploy-${VERSION}
ENV KAFKA_CONNECTOR_NAME=lightstreamer-kafka-connector-${VERSION}
ENV KAFKA_CONNECTOR_ZIP=${KAFKA_CONNECTOR_NAME}.zip
ENV DEPLOY_DIR=/lightstreamer/adapters/${KAFKA_CONNECTOR_NAME}

Expand Down
2 changes: 1 addition & 1 deletion examples/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo "Making the deployment package"
$_gradle distribuite

rm -fr ${TMP_DIR}; mkdir ${TMP_DIR}
cp ${projectDir}/deploy/lightstreamer-kafka-connector-deploy-${version}.zip ${TMP_DIR}
cp ${projectDir}/deploy/lightstreamer-kafka-connector-${version}.zip ${TMP_DIR}

echo "Build the Lightstramer Kafka Connector Docker image"
docker build -t lightstreamer-kafka-connector-${version} $SCRIPT_DIR --build-arg VERSION=${version}
Expand Down
2 changes: 1 addition & 1 deletion kafka-connector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ javadoc {

distributions {
connector {
distributionBaseName = rootProject.name + '-deploy'
distributionBaseName = rootProject.name

contents {
from(jar) {
Expand Down
21 changes: 17 additions & 4 deletions kafka-connector/src/connector/dist/adapters.xml
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,15 @@
<param name="record.key.evaluator.type">INTEGER</param>
<param name="record.value.evaluator.type">JSON</param>

<!-- Mandatory if evaluator type is AVRO. The path of the local schema file relative to
the deployment folder (LS_HOME/adapters/lightstreamer-kafka-connector-<version>) for message validation
respectively of the Kafka key and the Kafa value. -->
<!-- Mandatory if evaluator type is AVRO and the Confluent Schema Registry is disabled. The path of the local schema
file relative to the deployment folder (LS_HOME/adapters/lightstreamer-kafka-connector-<version>) for
message validation respectively of the Kafka key and the Kafa value. -->
<!--
<param name="record.key.evaluator.schema.path">schema/record_key.avsc</param>
<param name="record.value.evaluator.schema.path">schemas/record_value.avsc</param>
-->

<!-- Optional. Enable the use of the Confluent Schema Registry for validation respectively of the Kafka key and
<!-- Mandatory if evaluator type is AVRO and no local schema paths are specified. Enable the use of the Confluent Schema Registry for validation respectively of the Kafka key and
the Kafa value. Can be one of the following:
- true
- false
Expand Down Expand Up @@ -369,6 +369,19 @@
<param name="field.ref_price">#{VALUE.ref_price}</param>
<param name="field.open_price">#{VALUE.open_price}</param>
<param name="field.item_status">#{VALUE.item_status}</param>

<!-- ##### SCHEMA REGISTRY SETTINGS ##### -->

<!-- Mandatory if the Confluent Schema Registry is enabled. The URL of the Confluent Schema Registry.
An encrypted connection is enabled by specifying the "https" protocol
-->
<param name="schema.registry.url">https://schema-registry:8084</param>
<param name="schema.registry.encryption.truststore.path">secrets/kafka-connector.truststore.jks</param>
<param name="schema.registry.encryption.truststore.password">kafka-connector-truststore-password</param>
<param name="schema.registry.encryption.keystore.enable">true</param>
<param name="schema.registry.encryption.keystore.path">secrets/kafka-connector.keystore.jks</param>
<param name="schema.registry.encryption.keystore.password">kafka-connector-password</param>
<param name="schema.registry.encryption.keystore.key.password">kafka-connector-private-key-password</param>
</data_provider>

</adapters_conf>
Expand Down

0 comments on commit 2151d0d

Please sign in to comment.