Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
gfinocchiaro committed Feb 28, 2024
1 parent 3012b08 commit c8af881
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
9 changes: 6 additions & 3 deletions examples/docker-image/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ <h2 id="instructions">Instructions</h2>
</li>
<li>
<p>Run the command:</p>
<p><code>./build.sh</code></p>
<pre><code class="language-sh">./build.sh
</code></pre>
<p>which will:</p>
<ul>
<li>create and copy the distribution package to the <code>tmp</code> folder;</li>
Expand All @@ -174,11 +175,13 @@ <h2 id="instructions">Instructions</h2>
</li>
<li>
<p>Launch the container with:</p>
<p><code>docker run --name kafka-connector -d -p 8080:8080 lightstreamer-kafka-connector-&lt;version&gt;</code></p>
<pre><code class="language-sh">docker run --name kafka-connector -d -p 8080:8080 lightstreamer-kafka-connector-&lt;version&gt;
</code></pre>
</li>
<li>
<p>Check the logs:</p>
<p><code>docker logs -f kafka-connector</code></p>
<pre><code class="language-sh">docker logs -f kafka-connector
</code></pre>
</li>
</ol>

Expand Down
12 changes: 9 additions & 3 deletions examples/docker-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ To build the image:

2. Run the command:

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

which will:

Expand All @@ -38,8 +40,12 @@ To build the image:

4. Launch the container with:

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

5. Check the logs:

`docker logs -f kafka-connector`
```sh
docker logs -f kafka-connector
```
4 changes: 2 additions & 2 deletions examples/quickstart/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
version: '2'
services:
lightstreamer:
container_name: lightstreamer
kafka-connector:
container_name: kafka-connector
image: lightstreamer-kafka-connector-0.1.0
depends_on:
- producer
Expand Down
2 changes: 1 addition & 1 deletion examples/quickstart/launch_quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ if [ $? == 0 ]; then
# Deploy the Kafka Producer to the tmp folder
./gradlew QuickStart
cd $cwd
docker compose up --build
docker compose up --build -d
fi
3 changes: 3 additions & 0 deletions examples/quickstart/shutdown_quickstart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
docker compose down
rm -fr tmp

0 comments on commit c8af881

Please sign in to comment.