Pre and post regional script: feature proposal
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- git, kubernetes, shell
- 領域
- devops, infrastructure
調査の方向性
まず ide/init.json のスキーマと onyxia-init.sh のエントリーポイントを追跡し、特にリージョン初期化フックと Git 認証情報設定ブロックを確認します。リージョン前後のスクリプトをどのように表現し、どの順序で実行すべきかを判断します。既存の初期化ステップによって上書きされることなく、リージョン固有の変更を既存の初期化ステップの前後の両方で実行できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
I submit you a new feature.
We can override the ide/init.json schema to execute a regional initialization script. However, this regional script is triggered at the start of the onyxia-init.sh script. Unfortunately, some changes made by the regional script can be overwritten by subsequent instructions in the onyxia-init.sh script.
Concrete example: Git
In a region init script, I would like to change the credential.helper value: git config --global credential.helper '!f() { printf "%s\n" "username=$GIT_USER_NAME" "password=$GIT_PERSONAL_ACCESS_TOKEN"; };f'
When onyxia-init.sh script is executed credential.helper is updated by the below code:
if [ -n "$GIT_CREDENTIALS_CACHE_DURATION" ]; then
git config --"$git_config" credential.helper "cache --timeout=$GIT_CREDENTIALS_CACHE_DURATION"
fi
A workaround could be a pre and post mecanism like this:
"preregionInit": {
"type": "string",
"description": "pre region initialization script",
"default": "",
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{k8s.initScriptUrl}}"
}
},
"postregionInit": {
"type": "string",
"description": "post region initialization script",
"default": "",
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{k8s.initScriptUrl}}"
}
},
How do you feel about this feature?
- 主要言語
- Java
- スター
- 34
- フォーク
- 34
- 平均マージ
- 9分
- マージ済み PR(30日)
- 4
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
InseeFrLab/onyxia-api のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 43/100
InseeFrLab/onyxia-api#689 ·
-
Security : run helm installs / upgrades / uninstalls as a service account local to the target namespace対応中かも @olevitt が 12 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
InseeFrLab/onyxia-api#688 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
InseeFrLab/onyxia-api#669 ·
-
helmwrapper issue with rootless env : try to create /.cache再び着手できるかも @olevitt が 346 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
InseeFrLab/onyxia-api#638 · コメント 5 件 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
InseeFrLab/onyxia-api#612 · コメント 3 件 ·
InseeFrLab/onyxia-api の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
micronaut-projects/micronaut-redis#844 ·
メンテナーはふだん 4 日以内に返信
-
ai-driven-fuzzing bug claude Major
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
linagora/tmail-backend#2862 ·
メンテナーはふだん 1 日以内に返信
-
ai-driven-fuzzing bug claude Minor
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
linagora/twake-calendar-side-service#1435 ·
メンテナーはふだん 1 日以内に返信
-
Poetry updater rejects OR (||) Python constraints in PyprojectPreparer#update_python_requirementオープンL: python L: ruby:bundler
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
dependabot/dependabot-core#16819 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Auto-trusted serialization allow list skips array component classes対応中かも @Icesource が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信