Chapter 2. Configure the extension registry client
The extension registry, registry.quarkus.redhat.com, hosts the Quarkus extensions that Red Hat provides.
You can configure your Quarkus developer tools to access extensions in this registry by adding the registry to your registry client configuration file. The registry client configuration file is a YAML file that contains a list of registries.
-
The default Quarkus registry is
registry.quarkus.io; typically, you do not need to configure it. However, if a user provides a custom registry list andregistry.quarkus.iois not on it, thenregistry.quarkus.iois not enabled. - Ensure that the registry you prefer appears first on the registry list. When Quarkus developer tools search for registries, they begin at the top of the list.
Procedure
-
Open the
config.yamlfile that contains your extension registry configuration. When you configure your extension registries for the first time, you might need to create aconfig.yamlfile in the$HOME/.quarkusdirectory on your machine. Add the new registry to the
config.yamlfile. For example:config.yaml
registries: - registry.quarkus.redhat.com - registry.quarkus.io
2.1. Limit the extension catalog to a specific offering Copy linkLink copied to clipboard!
The extension registry, registry.quarkus.redhat.com, hosts the definition of Quarkus extensions that Red Hat provides.
Extensions can be associated with multiple offerings; however, you can configure the extension registry to limit the extension catalog to a specific offering. You can configure only one offering per registry.
In the following example, the extension catalog provided by registry.quarkus.redhat.com is limited to extensions that make up the redhat offering.
If you do not configure an offering, the registry returns the complete extension catalog.
Procedure
-
Open the
config.yamlfile that contains your extension registry configuration. Add
offering: redhatto theconfig.yamlfile.For example:
config.yaml
registries: - registry.quarkus.redhat.com offering: redhat - registry.quarkus.io