googleapis / googleapis/ruby-cloud-env
[Feature] Provide high-level methods for identifying cloud run and cloud functions
- 主要言語
- Ruby
- スター
- 16
- フォーク
- 12
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In the design of this library, class methods of Google::Cloud::Env are generally used for high-level semantic queries, such as "am I running on Cloud Run?"
We should provide some of these for the modern hosting environments such as Cloud Run and Cloud Functions. I believe some criteria that can be used include:
* GCF first gen: `GAE_RUNTIME`, `K_SERVICE`, `K_REVISION` set, and functions framework present
* GCF second gen: `GAE_RUNTIME`, `K_SERVICE`, `K_REVISION`, `K_CONFIGURATION` set, and functions framework present
* GCR first gen: `K_SERVICE`, `K_REVISION`, `K_CONFIGURATION` set, smbios info absent
* GCR second gen: `K_SERVICE`, `K_REVISION`, `K_CONFIGURATION` set, smbios info present
コントリビューションガイド
調査の方向性
Google::Cloud::Env クラスと、そこに既存する高レベルのセマンティッククエリメソッドから始めます。列挙された環境変数、functions framework、SMBIOS 情報が、Cloud Functions と Cloud Run の各世代をどのように区別しているかを確認します。完了条件は、列挙された各ホスティング環境を識別するメソッドを提供し、それらをこれらの基準に対して検証することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- google-cloud, ruby
- 領域
- cloud
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100