This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from opt-nc/26-baby-run-from-scractch-et-finli…
…saiton-éval 26 baby run from scractch et finlisaiton éval
- Loading branch information
Showing
2 changed files
with
56 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,62 @@ | ||
# __QuickStart__ | ||
|
||
## 🧰 Prérequis | ||
# ☝️ Prérequis | ||
|
||
Les éléments suivant doivent-être installés (cf. liens d'installation ci-dessous) : | ||
|
||
* <a href="https://docs.docker.com/engine/install/" target="_blank"> Docker </a> | ||
* <a href="https://www.jbang.dev/documentation/guide/latest/installation.html" target="_blank"> JBang </a> | ||
- [`docker`](https://docs.docker.com/engine/install/) | ||
- [`KafkaCat`](https://github.com/edenhill/kcat) | ||
- [`sdkman`](https://sdkman.io/) | ||
|
||
|
||
# 🧰 Tools | ||
|
||
` | ||
## 📥 `JBang!` | ||
|
||
Install [`Camel-JBang `](https://www.jbang.dev/download/) : | ||
|
||
```shell | ||
sdk install jbang && jbang app setup | ||
` | ||
* <a href="https://camel.apache.org/manual/camel-jbang.html" target="_blank"> Camel-JBang </a> | ||
``` | ||
|
||
## 🐪 `Camel-JBang` | ||
|
||
`jbang app install camel@apache/camel` | ||
* KafkaCat : | ||
|
||
`sudo apt install -y kafkacat` | ||
[`Camel-JBang`](https://camel.apache.org/manual/camel-jbang.html) | ||
|
||
|
||
```shell | ||
jbang app install camel@apache/camel | ||
``` | ||
|
||
## 👂 Ports | ||
|
||
Les ports suivant doivent-être libres pour que les conteneurs Docker puissent fonctionner : | ||
|
||
* 8080 - opt-temps-attente-agences-api | ||
* 8888 - kowl | ||
* 9092 / 9093 - kafka | ||
* 2181 - zookeeper | ||
- `8080` : [`optnc/opt-temps-attente-agences-api`](https://hub.docker.com/r/optnc/opt-temps-attente-agences-api) | ||
- `8888` : [`red-panda-console`](https://github.com/redpanda-data/console) | ||
- `9092/9093` : [`bitnami/kafka`](https://hub.docker.com/r/bitnami/kafka) | ||
- `2181` : [`docker.io/bitnami/zookeeper:latest`](https://hub.docker.com/r/bitnami/zookeeper/) | ||
|
||
```shell | ||
sudo netstat -tulpn | grep LISTEN | ||
sudo netstat -tulpn | grep LISTEN | grep 8080 | ||
sudo netstat -tulpn | grep LISTEN | grep 8888 | ||
sudo netstat -tulpn | grep LISTEN | grep 9092 | ||
sudo netstat -tulpn | grep LISTEN | grep 9093 | ||
sudo netstat -tulpn | grep LISTEN | grep 2181 | ||
``` | ||
|
||
|
||
## 🚀 Démarer | ||
|
||
## 🧑 Mode opératoire 🎓 | ||
```shell | ||
gh repo clone opt-nc/opt-temps-attente-agences-camel | ||
cd opt-temps-attente-agences-camel | ||
``` | ||
|
||
* Lancer une invite de commande bash | ||
* Se placer dans le dossier _scripts_ | ||
Exécuter `quickstart.sh`: | ||
|
||
`cd scripts` | ||
* Exécuter le fichier _.sh_ pour Linux. | ||
```shell | ||
cd scripts | ||
./quickstart.sh | ||
``` | ||
|
||
`./quickstart.sh` | ||
|
||
:warning: A noter qu'il sera sans doute nécessaire d'actualiser la page RedPanda pour que le flux de données soit visible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters