5.7.4. WebStorm の使用
手順
- che-incubator 組織下にある IntelliJ Idea Community Edition を構築するのに必要なjetbrains-editor-images リポジトリーのクローンを作成します。
イメージをビルドします。
$ podman build -t webstorm --build-arg PRODUCT_NAME=WebStorm .このコマンドは、デフォルトで
2020.2.3バージョンでイメージをビルドします。ビルドしたイメージをタグ付けし、ユーザーリポジトリーにプッシュします。
$ podman tag webstorm:latest <username>/webstorm:latest $ podman push <username>/webstorm:latest- オフラインで使用するアクティベーションコードをプロビジョニングし、登録済みのライセンスで WebStorm を使用できるようにします。「オフラインで使用するための JetBrain アクティベーションコードのプロビジョニング」 セクションを参照してください。
以下の
workspace.yaml およびファイルでワークスペースを作成します。meta.yamlworkspace.yaml: ワークスペース設定。meta.yamlファイルに正しい URL を指定するのを忘れないでください。metadata: name: che-webstorm components: - type: cheEditor reference: '<URL to meta.yaml>' alias: webstorm-editor automountWorkspaceSecrets: true apiVersion: 1.0.0注記現在のワークスペース定義には、automountWorkspaceSecrets: trueの新規プロパティーがあります。このプロパティーは、シークレットを特定のコンポーネントにプロビジョニングするように Red Hat CodeReady Workspaces に指示します。この場合、これは IntelliJ Idea Ultimate Edition に基づいて CodeReady Workspaces エディターにプロビジョニングします。このパラメーターは、オフラインで使用する目的で IDE をアクティベーションコードで正常に登録するために 必須 です。meta.yaml- CodeReady Workspaces エディターの設定。<username>を、イメージをプッシュするリポジトリーのユーザー名に置き換えます。apiVersion: v2 publisher: <username> name: webstorm-NOVNC version: 2020.2.3 type: Che Editor displayName: WebStorm title: WebStorm (in browser using noVNC) as editor for Red Hat CodeReady Workspaces description: WebStorm running on the Web with noVNC icon: https://resources.jetbrains.com/storage/products/webstorm/img/meta/webstorm_logo_300x300.png category: Editor repository: https://github.com/che-incubator/che-editor-intellij-community firstPublicationDate: "2020-10-27" spec: endpoints: - name: "intellij" public: true targetPort: 8080 attributes: protocol: http type: ide path: /vnc.html?resize=remote&autoconnect=true&reconnect=true containers: - name: webstorm-novnc image: "<username>/webstorm:latest" mountSources: true volumes: - mountPath: "/JetBrains/WebStorm" name: webstorm-configuration ports: - exposedPort: 8080 memoryLimit: "2048M"