Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
gfinocchiaro committed Feb 23, 2024
1 parent d0dc1d0 commit 06fe600
Show file tree
Hide file tree
Showing 124 changed files with 294 additions and 3,654 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ repositories {

dependencies {
implementation "com.diffplug.spotless:spotless-plugin-gradle:6.25.0"
}
}
2,812 changes: 0 additions & 2,812 deletions examples/conf/lightstreamer_conf.xml

This file was deleted.

479 changes: 0 additions & 479 deletions examples/conf/lightstreamer_log_conf.xml

This file was deleted.

21 changes: 13 additions & 8 deletions examples/docker/lightstreamer-kafka-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ services:
# - kafka
ports:
- 8080:8080
networks:
- kafka-network
# networks:
# - kafka-network
volumes:
- type: bind
source: deploy/connector
target: /lightstreamer/adapters/kafka-connector
- type: bind
source: deploy/conf/lightstreamer_conf.xml
target: /lightstreamer/conf/lightstreamer_conf.xml
source: build/install/lightstreamer-kafka-connector
target: /lightstreamer/adapters/lightstreamer-kafka-connector
# - type: bind
# source: deploy/conf/lightstreamer_conf.xml
# target: /lightstreamer/conf/lightstreamer_conf.xml
- type: bind
source: deploy/conf/lightstreamer_log_conf.xml
target: /lightstreamer/conf/lightstreamer_log_conf.xml
- type: bind
source: secrets
target: /lightstreamer/adapters/lightstreamer-kafka-connector/secrets

# kafka:
# image: 'docker.io/bitnami/kafka:latest'
Expand All @@ -38,5 +41,7 @@ services:

networks:
kafka-network:
name: lightstreamer-kafka-connector_default
# name: kafka-cluster-ssl_default
external: true
# name: kafka-network

11 changes: 11 additions & 0 deletions examples/quickstart/Dockerfile.kafka-connector
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM lightstreamer

ARG version

COPY deploy/lightstreamer-kafka-connector-${version}.zip /tmp/lightstreamer-kafka-connector.zip
USER root
RUN apt-get -y update; \
apt-get install -y unzip; \
unzip /tmp/lightstreamer-kafka-connector.zip -d /lightstreamer/adapters

USER lightstreamer
6 changes: 6 additions & 0 deletions examples/quickstart/Dockerfile.producer
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM eclipse-temurin:11
ARG VERSION
RUN mkdir /opt/producer

COPY deploy/lightstreamer-kafka-connector-samples-all-0.1.0.jar /opt/producer/lightstreamer-kafka-connector-samples-all.jar
CMD ["java", "-jar", "/opt/producer/lightstreamer-kafka-connector-samples-all.jar"]
110 changes: 0 additions & 110 deletions examples/quickstart/adapters.xml

This file was deleted.

10 changes: 10 additions & 0 deletions examples/quickstart/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
DEPLOY_DIR=$(pwd)/deploy
rm -fr $DEPLOY_DIR || true
mkdir $DEPLOY_DIR
cd ../..
./gradlew distribuite

cp deploy/lightstreamer-kafka-connector-0.1.0.zip $DEPLOY_DIR
cp deploy/lightstreamer-kafka-connector-samples-all-0.1.0.jar $DEPLOY_DIR
docker compose -f examples/quickstart/docker-compose.yaml up --remove-orphans
46 changes: 46 additions & 0 deletions examples/quickstart/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
version: '2'
services:
lightstreamer:
build:
dockerfile: Dockerfile.kafka-connector
args:
version: 0.1.0
# context: ../../
# depends_on:
# - broker
ports:
- 8080:8080

# producer:
# build:
# dockerfile: producer.Dockerfile
# args:
# VERSION: 0.1.0


# broker:
# image: confluentinc/confluent-local:latest
# ports:
# - "9092:9092"
# - "8082:8082"
# environment:
# KAFKA_NODE_ID: 1
# KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT'
# KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://broker:29092,PLAINTEXT_HOST://localhost:9092'
# KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
# KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
# KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
# KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
# KAFKA_SSL_KEYSTORE_LOCATION: /etc/kafka/secrets/kafka.server.keystore.jks
# KAFKA_SSL_KEYSTORE_PASSWORD: password
# KAFKA_PROCESS_ROLES: 'broker,controller'
# KAFKA_CONTROLLER_QUORUM_VOTERS: '1@broker:29093'
# KAFKA_LISTENERS: 'PLAINTEXT://broker:29092,CONTROLLER://broker:29093,PLAINTEXT_HOST://0.0.0.0:9092'
# KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT'
# KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
# KAFKA_LOG_DIRS: '/tmp/kraft-combined-logs'
# KAFKA_REST_HOST_NAME: rest-proxy
# KAFKA_REST_BOOTSTRAP_SERVERS: 'broker:29092'
# KAFKA_REST_LISTENERS: "http://0.0.0.0:8082"
# CLUSTER_ID: '4L6g3nShT-eMCtK--X86sw'
27 changes: 0 additions & 27 deletions examples/quickstart/log4j.properties

This file was deleted.

16 changes: 0 additions & 16 deletions examples/quickstart/user-key.avsc

This file was deleted.

104 changes: 0 additions & 104 deletions examples/quickstart/user-value.avsc

This file was deleted.

Loading

0 comments on commit 06fe600

Please sign in to comment.