Add support for `.service` file
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with manage_apps.py and deploy.sh, tracing the existing APP and METHOD environment-variable flow. Review the proposed SERVICEFILEPATH handling and connection.serviceExists checks, then follow how deploy.sh invokes manage_apps.py. Done means a .service file is recognized during deploy previews and the described service checks and creation flow works for applications needing services such as Redis or Postgres.
索引モデルが issue の本文から書いたものです。
説明
For applications which require services like Redis or Postgres, a standard file (probably .service) would be useful to recognize and automatically spin up those services for the app. This is especially useful as part of the deploy preview, which would be frustrating to use for now for apps which depend on those resources.
We can accomplish this with logic along the lines of:
SERVICE_FILEPATH = os.environ.get("SERVICEFILEPATH")
METHOD = os.environ.get("METHOD")
if SERVICE_FILEPATH:
with open(SERVICE_FILEPATH, 'r') as svc_file:
service_configs = json.load(svc_file)
if not isinstance(service_configs, list):
service_configs = [service_configs]
if METHOD == "CHECKSVC":
for service in service_configs:
push = "false" if connection.serviceExists(APP, service['type']) else "true"
if push == "true":
print(push)
in manage_apps.py and logic along the lines of:
# Check if service needs to be created
if [[ -f "$APPS_DIR/$APP/.service" ]]; then
service_file="$APPS_DIR/$APP/.service"
create_svc=true
fi
if [[ "$create_svc" == "true" ]]; then
APP=$with_suffix METHOD="CREATESVC" SERVICEFILEPATH=$service_file python ./manage_apps.py
fi
in deploy.sh.
- 主要言語
- 言語のデータがありません
- スター
- 4
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
plotly/de-deploy のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
Add support for DE4 オープン
plotly/de-deploy の issue をすべて見る
似ている issue
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main オープンarea: ci bug perceived difficulty: 3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
crossplane/crossplane#7859 ·
-
Product: Terraform (AVM) Topic: Networking (HS) :globe_with_meridians:
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Azure/Azure-Landing-Zones#4282 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
bug carvel-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
carvel-dev/kapp-controller#1861 ·