graphprotocol / graphprotocol/graph-node
[Feature] Get network name and node from env vars
オープン
まだ誰も着手していません。
enhancement
Stale
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 1.1k
- 平均マージ
- 4日 1時間
- マージ済み PR(30日)
- 1
説明
Description
When running the node using docker-compose, it would be helpful to get the network name and RPC url from environment variables instead of having to modify docker/docker-compose.yml#L22.
This change would do the trick:
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index c78c2eb21..36e8beba7 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -19,7 +19,7 @@ services:
postgres_pass: let-me-in
postgres_db: graph-node
ipfs: 'ipfs:5001'
- ethereum: 'mainnet:http://host.docker.internal:8545'
+ ethereum: ${NETWORK_NAME:-mainnet}:${ETHEREUM_RPC_URL:-http://host.docker.internal:8545}
GRAPH_LOG: info
ipfs:
image: ipfs/kubo:v0.17.0
What do you think?
Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.
No.
Some information to help us out
- Tick this box if you plan on implementing this feature yourself.
- I have searched the issue tracker to make sure this issue is not a duplicate.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
docker/docker-compose.yml の22行目付近にある ethereum 設定から始め、ネットワーク名と RPC URL に対して提案されている環境変数のデフォルト値を確認してください。Compose 設定を検証し、ファイルを編集しなくても両方の変数がデフォルト値を上書きすることを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker-compose
- 領域
- devops
- issue の種類
- 機能追加
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 52/100