Chapter 3. Enable and configure the JFrog plugin
Enable and configure the JFrog Artifactory plugin to display container images from your repository in Red Hat Developer Hub.
3.1. Enable the JFrog Artifactory plugin Copy linkLink copied to clipboard!
To enable the JFrog Artifactory plugin, set the disabled property to false.
Procedure
To enable the JFrog Artifactory plugin, set the
disabledproperty tofalsein yourdynamic-plugins.yamlfile as follows:plugins: - package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-jfrog-artifactory:<tag> disabled: false pluginConfig: dynamicPlugins: frontend: backstage-community.plugin-jfrog-artifactory: mountPoints: - mountPoint: entity.page.image-registry/cards importName: JfrogArtifactoryPage config: layout: gridColumn: 1 / -1 if: anyOf: - isJfrogArtifactoryAvailablewhere:
<tag>Enter your RHDH version of Backstage and the plugin version, in the format
bs_<backstage-version>__<plugin-version>(note the double underscore delimiter). To find these versions, complete the following steps:- Find your Backstage version in the RHDH release notes preface.
Locate the plugin version in the Dynamic Plugins Reference guide. For example, for RHDH 1.10 based on Backstage 1.49.4, use the format
bs_1.49.4__<plugin-version>.TipTo ensure environment stability, use a SHA256 digest instead of a version tag. See Determining SHA256 Digests.
3.2. Configure the JFrog Artifactory plugin Copy linkLink copied to clipboard!
Configure proxy settings and annotations to display container images stored in your JFrog Artifactory repository.
Procedure
Set the proxy to the required JFrog Artifactory server in the app-config.yaml file as follows:
proxy: endpoints: '/jfrog-artifactory/api': target: http://<hostname>:8082 # or https://<customer>.jfrog.io headers: # Authorization: 'Bearer <YOUR TOKEN>' # Change to "false" in case of using a self-hosted Artifactory instance with a self-signed certificate secure: trueAdd the following annotation to the entity’s
catalog-info.yamlfile to enable the JFrog Artifactory plugin features in RHDH components:metadata: annotations: 'jfrog-artifactory/image-name': '<IMAGE-NAME>'