Skip to content

Commit

Permalink
podman README (#24)
Browse files Browse the repository at this point in the history
We can use the same docker scripts for podman.
  • Loading branch information
SVAdithya authored Feb 26, 2025
1 parent bb509ae commit 6e085e1
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
<details><summary>🚀 Podman Script</summary>

#creates all zookeeper, kafka and application docker
#creates all kraft kafka and application podman
```shell
podman-compose up -d --build # to get new changes loaded
```
#get list of all containers and ID for producer and consumer
```shell
podman ps
```
```shell
podman-compose down
podman-compose build
podman-compose up
```
#produce to topic
```shell
podman exec -it 87932ae7f6a5 /opt/kafka/bin/kafka-console-producer.sh --broker-list kafka:9092 --topic my-topic
```

#Consume topic
```shell
podman exec -it 87932ae7f6a5 /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server kafka:9092 --topic my-topic --from-beginning
```
</details>
<details> <summary>🐳 Docker Script</summary>

#creates all kraft kafka and application podman
```shell
docker-compose up -d --build # to get new changes loaded
```
Expand All @@ -21,6 +47,7 @@ docker exec -it 89d4f551353f /opt/kafka/bin/kafka-console-producer.sh --broker-l
```shell
docker exec -it 89d4f551353f /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server kafka:9092 --topic my-topic --from-beginning
```
</details>

```shell
mongo --host localhost --port 27017 -u root -p *** --authenticationDatabase admin
Expand All @@ -29,7 +56,6 @@ show collections
db.successMessage.find()
```

prometheus: http://localhost:9090/targets
Grafana: http://localhost:3000/

slack: https://app.slack.com/client/T07D61D72RY/C07D5TQCS1H
prometheus: http://localhost:9090/targets <br/>
Grafana: http://localhost:3000/ <br/>
slack: https://app.slack.com/client/T07D61D72RY/C07D5TQCS1H <br/>

0 comments on commit 6e085e1

Please sign in to comment.