kyma_poc
1.0.0
Kyma(希臘語,Wave 的意思,https://www.howtopronounce.com/kyma)是一個概念驗證演示,使用 Konveyor.io 內部的生成式 AI 來幫助程式碼現代化工作。
投影片:Konveyor KymaML:GenAI 程式碼遷移
python -m venv env
source env/bin/activate
pip install -r ./requirements.txt
cd data
./fetch.sh
# 這將 git 克隆一些範例原始碼應用程式./darwin_restart_podman_machine.sh
# 在 MacOS 上設定 podman VM,以便它將主機檔案系統掛載到 VM 中./darwin_get_latest_kantra_cli.sh
# 取得「kantra」我們的分析工具./analyzer_coolstuff.sh
# 分析 'coolstuff-javaee' 目錄並將分析輸出寫入 example_reports/coolstuff-javaee/output.yaml./kyma.py report data/example_reports/coolstuff-javaee/output.yaml example_output/coolstuff-quarkus
假設 YAML 中的 Kantra 分析報告位於 data/example_reports/coolstuff-javaee/output.yaml
範例輸出運行:
$ time ./kyma.py report data/example_reports/coolstuff-javaee/output.yaml example_output/coolstuff-quarkus
We have results from 4 RuleSet(s) in data/example_reports/coolstuff-javaee/output.yaml
Writing eap7/websphere to example_output/coolstuff-quarkus/eap7_websphere.md
Writing eap8/eap7 to example_output/coolstuff-quarkus/eap8_eap7.md
Writing openshift to example_output/coolstuff-quarkus/openshift.md
Writing quarkus/springboot to example_output/coolstuff-quarkus/quarkus_springboot.md
./kyma.py report data/example_reports/coolstuff-javaee/output.yaml 1.28s user 2.12s system 337% cpu 1.007 total
範例輸出可以在 github 上查看 data/example_reports/coolstuff-javaee/output.yaml
export OPENAI_API_KEY="mysecretkey"
./generate_coolstuff.sh
-t "quarkus" -t "jakarta-ee" -t "jakarta-ee8+" -t "jakarta-ee9+" -t "cloud-readiness"
time ./generate_coolstuff.sh 5.12s user 3.46s system 1% cpu 11:02.25 total
./generate_coolstuff.sh 4.86s user 3.73s system 0% cpu 15:52.24 total