Add a Custom Repository Source

Using the Image Builder page in the Cockpit web console, administrators can optionally define other repository source configuration parameters for composing images. For example, the Add source dialog in Cockpit lets you point to other existing source repositories after defining a valid ID, Name, URL, and Type.

What Do You Need?

Steps

Using the Cockpit web console, follow these steps to add a custom source repository for building images.

  1. In the Cockpit navigation pane, click Image Builder.
  2. In the Image Builder page, click Sources.
    The Sources page appears displaying the configuration parameters for the default repository sources used to build images.
  3. In the Sources page, click Add sources.
    The Add source dialog appears.
  4. In the Add source dialog, set the following configuration parameters and click Submit.
    ID (required) In the ID text box, enter the ID assigned to the repository source that you want to add.

    Example: ol8_baseos_latest

    Name (required) In the Name text box, enter the Name assigned to the repository source that you want to add.

    Example: Oracle Linux 8 BaseOS Latest (x86_64)

    URL (required) In the URL text box, enter the URL address assigned to the repository source that you want to add.

    Example:

    https://yum$ociregion.$ocidomain/repo/OracleLinux/OL8/baseos/latest/$basearch/
    Type (required) In the Type list box, select Yum repository.
    Check SSL Signature Default: Disabled (clear checkbox)

    Select the Check SSL Signature checkbox to verify the configuration of a signed SSL signature. Otherwise, if checking for a signed SSL signature isn't required, clear the checkbox.

    Check GPG Key Default: Disabled (clear checkbox)

    Select the Check GPG Key checkbox to verify the configuration of GPG encrypted public and private keys. Otherwise, if checking for the GPG key configuration parameters isn't required, clear the checkbox.

    Use RSHM Default: Disabled (clear checkbox)

    Select the Use RSHM checkbox to verify the configuration for RSHM subscription management for cloud environments. Otherwise, if checking for an RSHM configuration parameter isn't required, clear the checkbox.

  5. Restart the Cockpit host for the source repository changes to take effect.
  6. Log in to the Cockpit web console and verify that the parameters for the custom source repository appears in the Sources section of the Image Builder page.
    Image Builder automatically uses the source configuration parameters that appear in the Sources section of the Image Builder page the next time an image is built.