npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@janus-idp/backstage-plugin-acr

v1.4.15

Published

The Azure Container Registry (ACR) plugin displays information about your container images available in the Azure Container Registry.

Downloads

226

Readme

Azure Container Registry plugin for Backstage

The Azure Container Registry (ACR) plugin displays information about your container images available in the Azure Container Registry.

For administrators

Installing and configuring the ACR plugin

  1. Run the following command to install the ACR plugin:

    yarn workspace app add @janus-idp/backstage-plugin-acr
  2. Set the proxy to the desired ACR server in the app-config.yaml file as follows:

    # app-config.yaml
    proxy:
      endpoints:
        '/acr/api':
          target: 'https://mycontainerregistry.azurecr.io/acr/v1/'
          changeOrigin: true
          headers:
            # If you use Bearer Token for authorization, please replace the 'Basic' with 'Bearer' in the following line.
            Authorization: 'Basic ${ACR_AUTH_TOKEN}'
          # Change to "false" in case of using self hosted artifactory instance with a self-signed certificate
          secure: true
  3. Set the authorization using one of the following options:

    • Basic authorization:

      • Navigate to the ACR portal and go to the Access Keys tab.
      • Retrieve the username and password of the Admin user and use the Basic Auth Header Generator tool or run echo printf '<username>:<password>' | base64 in a terminal to convert the credentials into a basic token.
      • Set the generated token as ACR_AUTH_TOKEN in environment variables.
    • OAuth2: - Generate bearer access token using the process described in Authenticate with an Azure Container Registry.

      • One method is to generate a bearer token using your basic authorization token, i.e.

                curl --location 'https://<yourregistry>.azurecr.io/oauth2/token?scope=repository%3A*%3A*&service=<yourregistry>.azurecr.io' \
        --header 'Authorization: Basic <basic_token>'
      • Set the generated token as ACR_AUTH_TOKEN in environment variables. Make sure to replace the Basic in the app-config.yaml with Bearer

  4. Enable an additional tab on the entity view page using the packages/app/src/components/catalog/EntityPage.tsx file as follows:

    /* highlight-add-start */
    import { AcrPage, isAcrAvailable } from '@janus-idp/backstage-plugin-acr';
    
    /* highlight-add-end */
    
    const serviceEntityPage = (
      <EntityLayout>
        // ...
        {/* highlight-add-start */}
        <EntityLayout.Route
          if={e => Boolean(isAcrAvailable(e))}
          path="/acr"
          title="ACR"
        >
          <AcrPage />
        </EntityLayout.Route>
        {/* highlight-add-end */}
      </EntityLayout>
    );
  5. Annotate your entity using the following annotations:

    metadata:
      annotations:
        'azure-container-registry/repository-name': `<REPOSITORY-NAME>',

For users

Using the ACR plugin in Backstage

ACR is a front-end plugin that enables you to view information about the container images from your Azure Container Registry in Backstage.

Prerequisites

Procedure

  1. Open your Backstage application and select a component from the Catalog page.

  2. Go to the ACR tab.

    acr-tab

    The ACR tab in the Backstage UI contains a list of container images and related information, such as TAG, CREATED, LAST MODIFIED, and MANIFEST.