Add registry authentication to prepare for image building

After you have updated the blueprint, you must add authentication for the container registries to build the image with embedded MicroShift containers. To do this, update one of the systemd service files that are part of the image builder configuration.

Prerequisites
  • You have root-user access to your build host.

  • Your build host meets the image builder system requirements.

  • You have installed and set up image builder and the composer-cli tool.

Procedure
  1. Create an /etc/osbuild-worker/osbuild-worker.toml directory and configuration file if they do not exist.

  2. Add a pull secret for authenticating to the registry by setting the auth_file_path in the [containers] section of the /etc/osbuild-worker/osbuild-worker.toml configuration file:

    [containers]
    auth_file_path = "/etc/osbuild-worker/pull-secret.json"
  3. Restart the host to apply configuration changes.