Skip to content

Commit

Permalink
Fix READMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
gfinocchiaro committed Mar 14, 2024
1 parent 5d06c54 commit 43503c2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions examples/airport-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ To configure our `Flights` topic to be managed in a compacted manner, the follow

2. create the topic with the following configurations:
```sh
./bin/kafka-topics.sh --create --topic Flights --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1
./bin/kafka-configs.sh --bootstrap-server localhost:9092 --alter --entity-type topics --entity-name Flights --add-config cleanup.policy=compact
./bin/kafka-configs.sh --bootstrap-server localhost:9092 --alter --entity-type topics --entity-name Flights --add-config delete.retention.ms=30000
./bin/kafka-configs.sh --bootstrap-server localhost:9092 --alter --entity-type topics --entity-name Flights --add-config segment.ms=30000
./bin/kafka-configs.sh --bootstrap-server localhost:9092 --entity-type topics --entity-name Flights --describe
$ ./bin/kafka-topics.sh --create --topic Flights --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1
$ ./bin/kafka-configs.sh --bootstrap-server localhost:9092 --alter --entity-type topics --entity-name Flights --add-config cleanup.policy=compact
$ ./bin/kafka-configs.sh --bootstrap-server localhost:9092 --alter --entity-type topics --entity-name Flights --add-config delete.retention.ms=30000
$ ./bin/kafka-configs.sh --bootstrap-server localhost:9092 --alter --entity-type topics --entity-name Flights --add-config segment.ms=30000
$ ./bin/kafka-configs.sh --bootstrap-server localhost:9092 --entity-type topics --entity-name Flights --describe
```

### Lightstreamer Server
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-kafka-connector-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Edit the [CustomKafkaConnectorAdapter.java](src/main/java/com/lightstreamer/kafk
Build the project with the command:

```sh
./gradlew build
$ ./gradlew build
```

which generated the file `build/libs/custom-kafka-connector-adapter.jar`.
Expand Down
8 changes: 4 additions & 4 deletions examples/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The image is built by deriving the official [Lightstreamer Docker image](https:/
2. Run the command:

```sh
./build.sh
$ ./build.sh
```

which will:
Expand All @@ -30,7 +30,7 @@ The image is built by deriving the official [Lightstreamer Docker image](https:/
3. Check that the image has been created:

```sh
docker image ls kafka-connector-<version>
$ docker image ls kafka-connector-<version>

REPOSITORY TAG IMAGE ID CREATED SIZE
lightstreamer-kafka-connector-0.1.0 latest f77fc60f7892 13 minutes ago 602MB
Expand All @@ -39,11 +39,11 @@ The image is built by deriving the official [Lightstreamer Docker image](https:/
4. Launch the container with:

```sh
docker run --name kafka-connector -d -p 8080:8080 lightstreamer-kafka-connector-<version>
$ docker run --name kafka-connector -d -p 8080:8080 lightstreamer-kafka-connector-<version>
```

5. Check the logs:

```sh
docker logs -f kafka-connector
$ docker logs -f kafka-connector
```
16 changes: 8 additions & 8 deletions examples/quickstart-ssl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,22 @@ In addition, all services reference the local [`secrets`](../compose-templates/s
In particular,

- _broker_ mounts [`secrets/broker`](../compose-templates/secrets/broker/) to `/etc/kafka/secrets` for:
- the trust store file [`broker.truststore.jks`](../compose-templates/secrets/broker/broker.truststore.jks);
- the key store file [`broker.keystore.jks`](../compose-templates/secrets/broker/broker.keystore.jks);
- the credentials files [`broker_keystore_credentials`](../compose-templates/secrets/broker/broker_keystore_credentials) and [`broker_key_credentials`](../compose-templates/secrets/broker/broker_key_credentials).
- the trust store file [`broker.truststore.jks`](../compose-templates/secrets/broker/broker.truststore.jks)
- the key store file [`broker.keystore.jks`](../compose-templates/secrets/broker/broker.keystore.jks)
- the credentials files [`broker_keystore_credentials`](../compose-templates/secrets/broker/broker_keystore_credentials) and [`broker_key_credentials`](../compose-templates/secrets/broker/broker_key_credentials)

- _kafka-connector_ mounts [`secrets/kafka-connector`](../compose-templates/secrets/kafka-connector/) to `LS_KAFKA_CONNECTOR_HOME/secrets` for:
- the trust store file [`kafka-connector.truststore.jks`](../compose-templates/secrets/kafka-connector/kafka-connector.truststore.jks);
- the key store file [`kafka-connector.keystore.jks`](../compose-templates/secrets/kafka-connector/kafka-connector.keystore.jks);
- the trust store file [`kafka-connector.truststore.jks`](../compose-templates/secrets/kafka-connector/kafka-connector.truststore.jks)
- the key store file [`kafka-connector.keystore.jks`](../compose-templates/secrets/kafka-connector/kafka-connector.keystore.jks)

- _producer_ mounts [`secrets/producer`](../compose-templates/secrets/producer/) to `/usr/app/secrets` for:
- the trust store file [`producer.truststore.jks`](../compose-templates/secrets/producer/producer.truststore.jks);
- the key store file [`producer.keystore.jks`](../compose-templates/secrets/producer/producer.keystore.jks);
- the trust store file [`producer.truststore.jks`](../compose-templates/secrets/producer/producer.truststore.jks)
- the key store file [`producer.keystore.jks`](../compose-templates/secrets/producer/producer.keystore.jks)

You can regenerate all of them with:

```sh
./generate-secrets.sh
$ ./generate-secrets.sh
```

## Run
Expand Down

0 comments on commit 43503c2

Please sign in to comment.