3.2.2. カスタムプラグインレジストリーイメージのビルド
本セクションでは、カスタムプラグインレジストリーイメージをビルドする方法を説明します。この手順では、プラグインを追加する方法を説明します。イメージには、プラグインまたは拡張メタデータが含まれます。
前提条件
- Node.js 12.x
- yarn の実行中のバージョン。参照: Installing Yarn
-
./node_modules/.bin
がPATH
環境変数にある。 - podman または docker の実行中のインストール。
手順
プラグインレジストリーリポジトリーのクローンを作成し、デプロイするバージョンをチェックアウトします。
$ git clone git@github.com:redhat-developer/codeready-workspaces.git $ cd codeready-workspaces $ git checkout crw-2.13-rhel-8
-
./dependencies/che-plugin-registry/
ディレクトリーで、che-theia-plugins.yaml
ファイルを編集します。 -
che-theia-plugins.yaml
ファイルに有効なコンテンツを追加します。詳細は、https://access.redhat.com/documentation/ja-jp/red_hat_codeready_workspaces/2.13/html-single/end-user_guide/index#adding-a-vs-code-extension-to-the-che-plugin-registry.adoc を参照してください。 カスタムプラグインレジストリーイメージをビルドします。
$ cd dependencies/che-plugin-registry $ ./build.sh --organization <my-org> \ --registry <my-registry> \ --tag <my-tag>
注記build.sh
スクリプトの詳細なオプションを表示するには--help
パラメーターを使用します。レジストリーイメージにプラグインバイナリーを含めるには、--offline
パラメーターを追加します。レジストリーのビルド後にコンテナーに表示される
./dependencies/che-plugin-registry/v3/plugins/
の内容を確認します。正常なプラグインレジストリービルドから作成されるすべてのmeta.yaml
ファイルがここにあります。./dependencies/che-plugin-registry/v3/plugins/ ├── <publisher> │ └── <plugin-name> │ ├── latest │ │ └── meta.yaml │ └── latest.txt
関連情報