Skip to content

Iroha Bare Metal ပေါ်တွင် ပြေးဆွဲနေသည် ​

Docker Compose မှတစ်ဆင့်မဟုတ်ဘဲ host များတွင် peers ကိုတိုက်ရိုက် run လုပ်ချင်ပါက ဤ workflow ကိုအသုံးပြုပါ။ လက်ရှိ source tree က Kagami generator များကိုပေးသည်. ၎င်းတို့သည် matching genesis, peer config, client config နှင့် start/stop script များကိုရေးသားသည်။

(၁) ဘိုင်နရီများ တည်ဆောက်ခြင်း ​

Iroha လုပ်ငန်းခွင်ထက်:

bash
cargo build --release -p irohad -p iroha_cli -p iroha_kagami

ဒါကတော့:

  • target/release/irohad တူညီသော daemon အတွက်
  • target/release/iroha အတွက် CLI
  • target/release/kagami key၊ genesis နဲ့ localnet မျိုးဆက်အတွက်

(၂) ဒေသတွင်းကွန်ရက်တစ်ခု ဖန်တီးခြင်း ​

၄- peer Iroha 3 localnet ကိုဖန်တီးပါ။

bash
target/release/kagami localnet --build-line iroha3 --peers 4 --out-dir ./localnet

Output directory မှာ generated genesis.json, genesis.signed.nrt, peer config.toml files, client.toml, helper scripts နဲ့ အဲဒီ bundle အတွက် တိကျတဲ့ commands တွေပါတဲ့ generated README.md ကို ထည့်သွင်းထားပါတယ်။

(၃) တန်းတူလူငယ်များ စတင်ခြင်း ​

Generated disposable localnet အတွက် generated script ကိုသုံးပါ။

bash
./localnet/start.sh

systemd လို process manager ထဲမှာ peer တစ်ခုစီကို wired လုပ်ဖို့လိုတယ်ဆိုရင်, peer တစ်ခုချင်းအတွက် ./localnet/README.md မှာ မှတ်တမ်းတင်ထားတဲ့ launch command ကိုသုံးပါ။ peer တစ်ခုတိုင်းရဲ့ config.toml private key၊ storage directory နဲ့ ports တွေကို သီးခြားထားလိုက်ပါ။

(၄) ကွန်ရက်ကို စီမံခန့်ခွဲခြင်း ​

Generated client configuration ကို အသုံးပြုပါ

bash
target/release/iroha --config ./localnet/client.toml ledger domain list all
target/release/iroha --config ./localnet/client.toml --output-format text ops sumeragi status

Generated localnet ကို:

bash
./localnet/stop.sh

(၅) ထုတ်ကုန် မှတ်စုများ ​

  • ထုတ်လုပ်မှုအတွက် ကိုယ်ပိုင် သော့သစ်တွေ ထုတ်ပြီး သိုလှောင်ရုံအပြင်မှာ သိမ်းပါ။
  • တူညီတဲ့ လက်မှတ်ထိုးထားတဲ့ ဇီ၀ဖြစ်စဉ် ကုန်သွယ်မှု၊ ထိပ်ပိုင်းဆိုင်ရာ၊ ယုံကြည်မှုရှိတဲ့ တူညီသူတွေနဲ့ အတည်ပြုသူ PoPs ကို တူညီအောင်လုပ်ပါ။
  • အခြားစက်များမှ peer ကို မရရှိနိုင်သည့်အခါသာ host-local interfaces များသို့ Bind listener address များကို ဆက်သွယ်ပါ။
  • Torii exposure, basic auth, TLS နဲ့ rate limiting အတွက် reverse proxy (သို့) firewall ကိုသုံးပါ။
  • မျိုးရိုးဗီဇ (သို့) သဘောတူညီမှု ထိပ်ပိုင်းဆိုင်ရာ အပြောင်းအလဲများကို တစ်ပြိုင်နက် ဖိုင် တည်းဖြတ်ခြင်းမဟုတ်ဘဲ ညှိနှိုင်းထားတဲ့ ရွှေ့ပြောင်းမှုများအဖြစ် ဆက်ဆံပါ။

Containerized ဒေသတွင်းဖွံ့ဖြိုးမှုအတွက် Launch Iroha 3 Docker Compose အလုပ်ဖြစ်စဉ်ကိုအသုံးပြုပါ။