From fd17efcac61f59a4ec2219beceacaad364823d70 Mon Sep 17 00:00:00 2001 From: SALES Date: Mon, 24 Apr 2023 08:09:29 +1100 Subject: [PATCH 01/10] Update QUIKSTART.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Amélioration doc pour coller aux bonnes pratiques --- QUIKSTART.md | 63 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 24 deletions(-) diff --git a/QUIKSTART.md b/QUIKSTART.md index 9eb6148..45cab98 100644 --- a/QUIKSTART.md +++ b/QUIKSTART.md @@ -1,37 +1,52 @@ -# __QuickStart__ - -## 🧰 Prérequis +# ☝️ Prérequis Les éléments suivant doivent-être installés (cf. liens d'installation ci-dessous) : -* Docker -* JBang +- [`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/) : -` -sdk install jbang && jbang app setup -` -* Camel-JBang +```shell +sdk install jbang +sdk install jbang app setup +``` -`jbang app install camel@apache/camel` -* KafkaCat : - -`sudo apt install -y kafkacat` +## 🐪 `Camel-JBang` + +[`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/) + + ## 🚀 Démarer - ## 🧑 Mode opératoire ‍🎓 +```shell +gh repo clone opt-nc/opt-temps-attente-agences-camel +cd opt-temps-attente-agences-camel/scripts +``` - * 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 +./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. From 07f11d97706fb5417d8a61b53196b568518dee8b Mon Sep 17 00:00:00 2001 From: SALES Date: Mon, 24 Apr 2023 08:15:02 +1100 Subject: [PATCH 02/10] Update QUIKSTART.md --- QUIKSTART.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/QUIKSTART.md b/QUIKSTART.md index 45cab98..8732cae 100644 --- a/QUIKSTART.md +++ b/QUIKSTART.md @@ -14,8 +14,7 @@ Les éléments suivant doivent-être installés (cf. liens d'installation ci-des Install [`Camel-JBang `](https://www.jbang.dev/download/) : ```shell -sdk install jbang -sdk install jbang app setup +sdk install jbang && jbang app setup ``` ## 🐪 `Camel-JBang` From ff012c0a028e712371993d485b3bf7e8b79d034b Mon Sep 17 00:00:00 2001 From: SALES Date: Mon, 24 Apr 2023 08:15:33 +1100 Subject: [PATCH 03/10] Update QUIKSTART.md --- QUIKSTART.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QUIKSTART.md b/QUIKSTART.md index 8732cae..d06b7c2 100644 --- a/QUIKSTART.md +++ b/QUIKSTART.md @@ -23,7 +23,7 @@ sdk install jbang && jbang app setup ```shell -jbang app install camel@apache/camel` +jbang app install camel@apache/camel ``` ## 👂 Ports From 8e1bb6af2296f878a0bc0ad4ce36bad39f0ad719 Mon Sep 17 00:00:00 2001 From: SALES Date: Mon, 24 Apr 2023 08:22:47 +1100 Subject: [PATCH 04/10] Update QUIKSTART.md --- QUIKSTART.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/QUIKSTART.md b/QUIKSTART.md index d06b7c2..d7b2538 100644 --- a/QUIKSTART.md +++ b/QUIKSTART.md @@ -35,6 +35,16 @@ Les ports suivant doivent-être libres pour que les conteneurs Docker puissent f - `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 ```shell From 442db73c181d727d88502c3e9ea37c627bc17b79 Mon Sep 17 00:00:00 2001 From: SALES Date: Mon, 24 Apr 2023 08:23:51 +1100 Subject: [PATCH 05/10] Update QUIKSTART.md --- QUIKSTART.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QUIKSTART.md b/QUIKSTART.md index d7b2538..7b62b6d 100644 --- a/QUIKSTART.md +++ b/QUIKSTART.md @@ -49,12 +49,13 @@ sudo netstat -tulpn | grep LISTEN | grep 2181 ```shell gh repo clone opt-nc/opt-temps-attente-agences-camel -cd opt-temps-attente-agences-camel/scripts +cd opt-temps-attente-agences-camel ``` Exécuter `quickstart.sh`: ```shell +cd scripts ./quickstart.sh` ``` From 1c1459cef85a9f2854be23c3b05a0140d9515078 Mon Sep 17 00:00:00 2001 From: SALES Date: Mon, 24 Apr 2023 08:24:24 +1100 Subject: [PATCH 06/10] Update QUIKSTART.md --- QUIKSTART.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QUIKSTART.md b/QUIKSTART.md index 7b62b6d..0c52c26 100644 --- a/QUIKSTART.md +++ b/QUIKSTART.md @@ -56,7 +56,7 @@ cd opt-temps-attente-agences-camel ```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. From 71e1ffc053b1dc64f4a1334ad8f7863bdf617fbb Mon Sep 17 00:00:00 2001 From: SALES Date: Mon, 24 Apr 2023 08:41:16 +1100 Subject: [PATCH 07/10] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index d17eece..807d5fe 100644 --- a/README.md +++ b/README.md @@ -48,3 +48,8 @@ Un [draft macro de l'architecture cible envisagée](https://miro.com/app/board/u - Les interactions avec Camel passeront idéalement par [JBang!](https://camel.apache.org/manual/camel-jbang.html) - Une démo [KillerCoda](https://killercoda.com/opt-labs/) sera livrée et intégrée aux cours de l'OPT-NC... et pourra servir de support lors des démos, voire lors de la soutenance - Les images Docker ou docker-compose seront utilisées pour dépoyer Kafka, OpenSearch, Spark, ... + +# 📑 Ressources + +- [⌨️ Pipe xlsx files into/from Kafka... From cli with (k)cat 🙀](https://dev.to/optnc/pipe-xlsx-files-intofrom-kafka-from-cli-with-kcat-plp) +- :octocat: [Atelier spring-Kafka](https://github.com/opt-nc/atelier-spring-kafka/) From 1a6be30014cfce95470d3e87b3e17d90ab40ae97 Mon Sep 17 00:00:00 2001 From: SALES Date: Mon, 24 Apr 2023 08:43:10 +1100 Subject: [PATCH 08/10] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 807d5fe..8e2c1de 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ Les résultats de cette expérimentation seront recyclés de manière opération - 🧑‍🤝‍🧑 [Antoine GINDRE](https://www.linkedin.com/in/antoine-a-gindre/) (aka. [`@AntoineArthurG`](https://github.com/AntoineArthurG)): développeur - 🧑‍🤝‍🧑 [Kenneth WINCHESTER](https://www.linkedin.com/in/kenneth-opt-3498a5252/) (aka. [`@Kenneth-OPT`](https://github.com/Kenneth-OPT)) : développeur - 👨‍🎨 [Adrien SALES](https://www.linkedin.com/in/adrien-sales/) : Product Owner, Architecte +- 👩 [Michèle Barré](https://www.linkedin.com/in/michelebarre/) : Senior DEVOPS & Full Stack Dev # 🎯 Pitch From 64f921d6d3a8a4857a67b8c7ee018dd06d26e91e Mon Sep 17 00:00:00 2001 From: SALES Date: Mon, 24 Apr 2023 08:51:44 +1100 Subject: [PATCH 09/10] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8e2c1de..5f7211f 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,4 @@ Un [draft macro de l'architecture cible envisagée](https://miro.com/app/board/u - [⌨️ Pipe xlsx files into/from Kafka... From cli with (k)cat 🙀](https://dev.to/optnc/pipe-xlsx-files-intofrom-kafka-from-cli-with-kcat-plp) - :octocat: [Atelier spring-Kafka](https://github.com/opt-nc/atelier-spring-kafka/) +- [📖 Waiting time at OPT-NC Series' Articles](https://dev.to/adriens/series/18414) From 5ea2fd6fecd998a09417ca4d8da3308ad11b9b8a Mon Sep 17 00:00:00 2001 From: SALES Date: Mon, 24 Apr 2023 08:53:03 +1100 Subject: [PATCH 10/10] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5f7211f..9c8fe94 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,4 @@ Un [draft macro de l'architecture cible envisagée](https://miro.com/app/board/u - [⌨️ Pipe xlsx files into/from Kafka... From cli with (k)cat 🙀](https://dev.to/optnc/pipe-xlsx-files-intofrom-kafka-from-cli-with-kcat-plp) - :octocat: [Atelier spring-Kafka](https://github.com/opt-nc/atelier-spring-kafka/) - [📖 Waiting time at OPT-NC Series' Articles](https://dev.to/adriens/series/18414) +- [🛒 API sur marketplace](https://rapidapi.com/opt-nc-opt-nc-default/api/temps-attente-en-agence)