Ce contenu n'est pas disponible dans la langue sélectionnée.
Jfrog Artifactory plugin for Backstage
The Jfrog Artifactory plugin for Backstage
Abstract
Chapter 1. Jfrog Artifactory plugin for Backstage Copier lienLien copié sur presse-papiers!
The Jfrog Artifactory plugin displays information about your container images within the Jfrog Artifactory registry.
1.1. For administrators Copier lienLien copié sur presse-papiers!
1.1.1. Installing and configuring the Jfrog Artifactory plugin Copier lienLien copié sur presse-papiers!
The Red Hat Plug-ins for Backstage (RHPIB) packages are hosted in a separate NPM registry, which is maintained by Red Hat. To use these packages, you must adjust your NPM configuration to pull the @redhat scoped packages:
# update your .npmrc or .yarnrc file
yarn config set "@redhat:registry" https://npm.registry.redhat.com
# then pull a package
yarn add @redhat/backstage-plugin-quay
For more information, see npm docs.
Creating a .npmrc file ensures that all the packages are scoped under @redhat and are fetched from Red Hat’s NPM registry, while the rest dependencies remain sourced from other registry.
Procedure
Run the following command to install the Jfrog Artifactory plugin:
yarn workspace app add @redhat/backstage-plugin-jfrog-artifactorySet the proxy to the desired Artifactory server in the
app-config.yamlfile as follows:proxy: '/jfrog-artifactory/api': target: 'http://<hostname>:8082' # or https://<customer>.jfrog.io headers: # Authorization: 'Bearer <YOUR TOKEN>' # Change to "false" in case of using self hosted artifactory instance with a self-signed certificate secure: trueEnable the JFROG ARTIFACTORY tab on the entity view page in
packages/app/src/components/catalog/EntityPage.tsxfile as follows:/* highlight-add-start */ import { isJfrogArtifactoryAvailable, JfrogArtifactoryPage, } from "@redhat/backstage-plugin-jfrog-artifactory"; /* highlight-add-end */ const serviceEntityPage = ( <EntityPageLayout> // ... {/* highlight-add-start */} <EntityLayout.Route if={isJfrogArtifactoryAvailable} path="/jfrog-artifactory" title="Jfrog Artifactory" > <JfrogArtifactoryPage /> </EntityLayout.Route> {/* highlight-add-end */} </EntityPageLayout> );Annotate your entity using the following annotations:
metadata: annotations: 'jfrog-artifactory/image-name': '<IMAGE-NAME>'
1.2. For users Copier lienLien copié sur presse-papiers!
1.2.1. Using the Jfrog Artifactory plugin in Backstage Copier lienLien copié sur presse-papiers!
Jfrog Artifactory is a front-end plugin that enables you to view the information about the container images that are available in your Jfrog Artifactory registry.
Prerequisites
- Your Backstage application is installed and running.
- You have installed the Jfrog Artifactory plugin. For installation and configuration steps, see Section 1.1.1, “Installing and configuring the Jfrog Artifactory plugin”.
Procedure
- Open your Backstage application and select a component from the Catalog page.
Go to the JFROG ARTIFACTORY tab.
The JFROG ARTIFACTORY tab contains a list of container images and related information, such as VERSION, REPOSITORIES, MANIFEST, MODIFIED, and SIZE.