From d6a8b2863273d4d48076535f80babe1242e90228 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Mon, 26 Aug 2019 16:42:35 +0300 Subject: [PATCH 1/2] Use plugin patcher to inject remote plugin runtime. Signed-off-by: Oleksandr Andriienko --- v3/plugins/eclipse/che-theia/next/meta.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/v3/plugins/eclipse/che-theia/next/meta.yaml b/v3/plugins/eclipse/che-theia/next/meta.yaml index 5b7a80e5d1..947174abe1 100644 --- a/v3/plugins/eclipse/che-theia/next/meta.yaml +++ b/v3/plugins/eclipse/che-theia/next/meta.yaml @@ -46,6 +46,19 @@ spec: attributes: protocol: http discoverable: false + pluginPatcher: + pluginTypeMatcher: ["vs code extension", "theia plugin"] + pluginContainerCommand: ["sh", "-c"] + pluginContainerArgs: ["/plugins/remote-launcher/entrypoint.sh"] + initContainers: + - name: theia-remote-plugin-laucher + image: aandrienko/che-theia-endpoint-runtime:next + initContainer: true + command: ['cp'] + args: ['-rf', '/remote-plugin-launcher', '/plugins/remote-launcher'] + volumes: + - mountPath: "/plugins" + name: plugins containers: - name: theia-ide image: "docker.io/eclipse/che-theia:next" From 1847159b8f948d5f4106572d980be281ef1e3714 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Tue, 27 Aug 2019 16:27:40 +0300 Subject: [PATCH 2/2] Fix init container name and image organization name. Signed-off-by: Oleksandr Andriienko --- v3/plugins/eclipse/che-theia/next/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v3/plugins/eclipse/che-theia/next/meta.yaml b/v3/plugins/eclipse/che-theia/next/meta.yaml index 947174abe1..0f4dd9d922 100644 --- a/v3/plugins/eclipse/che-theia/next/meta.yaml +++ b/v3/plugins/eclipse/che-theia/next/meta.yaml @@ -51,8 +51,8 @@ spec: pluginContainerCommand: ["sh", "-c"] pluginContainerArgs: ["/plugins/remote-launcher/entrypoint.sh"] initContainers: - - name: theia-remote-plugin-laucher - image: aandrienko/che-theia-endpoint-runtime:next + - name: theia-remote-plugin-launcher + image: eclipse/che-theia-endpoint-runtime:next initContainer: true command: ['cp'] args: ['-rf', '/remote-plugin-launcher', '/plugins/remote-launcher']