Skip to content

Commit a0c912d

Browse files
committed
RHIDP-7560 - Install and configure plugins from Extensions page (next phase)
1 parent fae3409 commit a0c912d

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[id="proc-extensions-enabling-plugins-installation-rhdh-local_{context}"]
2+
= Configuring {product-very-short} Local to install plugins by using Extensions
3+
4+
You can use {product-very-short} Local to test installing plugins by using Extensions.
5+
6+
.Prerequisites
7+
* You have installed {product-very-short} Local. For more information about setting up {product-very-short} Local, see link:https://github.com/redhat-developer/rhdh-local/tree/main?tab=readme-ov-file#what-youll-need-before-you-get-started[Test locally with {product}].
8+
9+
.Procedure
10+
. Update your `dynamic-plugins.override.yaml` file:
11+
+
12+
[source,yaml]
13+
----
14+
includes:
15+
- dynamic-plugins.default.yaml
16+
17+
plugins:
18+
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace
19+
disabled: false
20+
pluginConfig:
21+
dynamicPlugins:
22+
frontend:
23+
red-hat-developer-hub.backstage-plugin-marketplace:
24+
appIcons:
25+
- name: marketplace
26+
importName: MarketplaceIcon
27+
dynamicRoutes:
28+
- path: /extensions/catalog
29+
importName: DynamicMarketplacePluginRouter
30+
mountPoints:
31+
- mountPoint: application/provider
32+
importName: InstallationContextProvider
33+
- mountPoint: internal.plugins/tab
34+
importName: DynamicMarketplacePluginContent
35+
config:
36+
path: marketplace
37+
title: Catalog
38+
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-marketplace-backend-dynamic
39+
disabled: false
40+
pluginConfig:
41+
extensions:
42+
installation:
43+
enabled: true
44+
saveToSingleFile:
45+
file: /opt/app-root/src/configs/dynamic-plugins/dynamic-plugins.override.yaml
46+
----
47+
. Update your `compose.yaml` file:
48+
+
49+
[source,yaml]
50+
----
51+
rhdh:
52+
container_name: rhdh
53+
environment:
54+
NODE_OPTIONS: "--inspect=0.0.0.0:9229"
55+
NODE_ENV: "development"
56+
----
57+
58+
.Verification
59+
Enable a plugin by using the Extensions UI, restart your {product-very-short} application and refresh the UI to confirm that the plugin is enabled.

0 commit comments

Comments
 (0)