Skip to content

Commit

Permalink
Reorganize examples folder (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfinocchiaro authored Oct 24, 2024
1 parent 99bcde6 commit 407cade
Show file tree
Hide file tree
Showing 117 changed files with 2,111 additions and 355 deletions.
92 changes: 52 additions & 40 deletions README.md

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ This folder contains several examples showing you how to use Lightstreamer Kafka

- [docker](./docker/): a minimal Docker image
- [quickstart](quickstart/): the _Quick Start_ app
- [quickstart-producer](quickstart-producer//): the producer for the _Quick Start_ app
- [quickstart-producer](quickstart-producer/): the producer for the _Quick Start_ app
- [quickstart-ssl](quickstart-ssl/): the _Quick Start_ app with encryption settings
- [quickstart-confluent-cloud](quickstart-confluent-cloud/): the _Quick Start_ app with _Confluent Cloud_ as the target Kafka Cluster
- [quickstart-redpanda-selfhosted](quickstart-redpanda-selfhosted/): the _Quick Start_ app with _Redpanda_ as the target broker
- [quickstart-redpanda-serverless](quickstart-redpanda-serverless/): the _Quick Start_ app with _Redpanda Serverless_ as the target cluster
- [quickstart-aiven](quickstart-aiven/): the _Quick Start_ app with _Aiven for Apache Kafka_ as the target Kafka cluster
- [quickstart-axual](quickstart-axual/): the _Quick Start_ app with a _shared test cluster_ from _Axual Platform_ as the target Kafka cluster
- [quickstart-confluent](vendors/confluent/quickstart-confluent/): the _Quick Start_ app with the _Confluent Platform_ as the target broker
- [quickstart-schema-registry](quickstart-schema-registry/): the _Quick Start_ app with the _Confluent Schema Registry_
- [quickstart-kafka-connect](quickstart-kafka-connect//): the _Quick Start_ app running with the Kafka Connect Connector packaging of the connector.
- [quickstart-redpanda-selfhosted](vendors/redpanda/quickstart-redpanda-selfhosted/): the _Quick Start_ app with _Redpanda_ as the target broker
- [quickstart-redpanda-serverless](vendors/redpanda/quickstart-redpanda-serverless/): the _Quick Start_ app with _Redpanda Serverless_ as the target cluster
- [quickstart-aiven](vendors/aiven/quickstart-aiven/): the _Quick Start_ app with _Aiven for Apache Kafka_ as the target Kafka cluster
- [quickstart-axual](vendors/axual/quickstart-axual/): the _Quick Start_ app with a _shared test cluster_ from _Axual Platform_ as the target Kafka cluster
- [quickstart-kafka-connect](quickstart-kafka-connect/): the _Quick Start_ app running with the Kafka Connect Connector packaging of the connector.
- [airport-demo](airport-demo/): a demo showing a basic departure board
- [custom-kafka-connector-adapter](custom-kafka-connector-adapter/): a sample Gradle project for building and deploying a custom _Kafka Connector Metadata Adapter_
2 changes: 1 addition & 1 deletion examples/airport-demo/docker-compose-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
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"
KAFKA_REST_LISTENERS: 'http://0.0.0.0:8082'
KAFKA_AUTO_CREATE_TOPICS_ENABLE: false

init-broker:
Expand Down
1 change: 1 addition & 0 deletions examples/compose-templates/docker
1 change: 1 addition & 0 deletions examples/compose-templates/docker-kafka-connect
1 change: 1 addition & 0 deletions examples/compose-templates/helpers.sh
4 changes: 2 additions & 2 deletions examples/compose-templates/start-connect.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
source ../utils/helpers.sh
source ./helpers.sh

# Build the Lightstreamer Kafka Connector Docker image
../docker-kafka-connect/build.sh
./docker-kafka-connect/build.sh

if [ $? == 0 ]; then
export version
Expand Down
5 changes: 3 additions & 2 deletions examples/compose-templates/start.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
source ../utils/helpers.sh
#source ../utils/helpers.sh
source ./helpers.sh

# Build the Lightstreamer Kafka Connector Docker image
../docker/build.sh
./docker/build.sh

if [ $? == 0 ]; then
export version
Expand Down
2 changes: 1 addition & 1 deletion examples/compose-templates/stop.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
source ../utils/helpers.sh
source ./helpers.sh

# Export the version env variable to be used by Compose
export version
Expand Down
2 changes: 1 addition & 1 deletion examples/docker-kafka-connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The image is based on the official [Official Confluent Docker Base Image for Kaf

### Requirements:

- Java 17
- JDK version 17 or newer
- Docker

### Instructions
Expand Down
10 changes: 4 additions & 6 deletions examples/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The image is built by deriving the official [Lightstreamer Docker image](https:/

## Requirements:

- JDK version 17
- JDK version 17 or newer
- Docker

## Instructions
Expand Down Expand Up @@ -42,8 +42,6 @@ The image is built by deriving the official [Lightstreamer Docker image](https:/
$ docker run --name kafka-connector -d -p 8080:8080 lightstreamer-kafka-connector-<version>
```

5. Check the logs:

```sh
$ docker logs -f kafka-connector
```
5. Verify the container

Point your browser to [http://localhost:8080](http://localhost:8080) and see the Lightstreamer Welcome pages.
2 changes: 1 addition & 1 deletion examples/docker/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -eu
source ../utils/helpers.sh
source ./helpers.sh
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})
TMP_DIR=${SCRIPT_DIR}/tmp

Expand Down
1 change: 1 addition & 0 deletions examples/docker/helpers.sh
6 changes: 3 additions & 3 deletions examples/docker/resources/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# resources folder

Copy into this 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`.
- `adapters.xml`
- `log4j.properties` (or any other referenced log configuration file)
- Local schema, key store, and trust store files referenced in `adapters.xml`
1 change: 0 additions & 1 deletion examples/quickstart-aiven/log4j.properties

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-aiven/start.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-aiven/stop.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-aiven/web

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-axual/log4j.properties

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-axual/start.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-axual/stop.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-axual/web

This file was deleted.

72 changes: 0 additions & 72 deletions examples/quickstart-confluent-cloud/README.md

This file was deleted.

59 changes: 0 additions & 59 deletions examples/quickstart-confluent-cloud/adapters.xml

This file was deleted.

40 changes: 0 additions & 40 deletions examples/quickstart-confluent-cloud/docker-compose.yml

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-confluent-cloud/log4j.properties

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-confluent-cloud/start.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-confluent-cloud/stop.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-confluent-cloud/web

This file was deleted.

2 changes: 1 addition & 1 deletion examples/quickstart-kafka-connect/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ services:
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"
KAFKA_REST_LISTENERS: 'http://0.0.0.0:8082'

schema-registry:
image: confluentinc/cp-schema-registry:7.5.0
Expand Down
1 change: 1 addition & 0 deletions examples/quickstart-kafka-connect/docker-kafka-connect
1 change: 1 addition & 0 deletions examples/quickstart-kafka-connect/helpers.sh
1 change: 0 additions & 1 deletion examples/quickstart-redpanda-selfhosted/log4j.properties

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-redpanda-selfhosted/secrets

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-redpanda-selfhosted/start.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-redpanda-selfhosted/stop.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-redpanda-selfhosted/web

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-redpanda-serverless/log4j.properties

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-redpanda-serverless/start.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-redpanda-serverless/stop.sh

This file was deleted.

1 change: 0 additions & 1 deletion examples/quickstart-redpanda-serverless/web

This file was deleted.

Loading

0 comments on commit 407cade

Please sign in to comment.