mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// microshift_running_applications/embed-microshift-offline-deploy.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="microshift-embed-registry-auth-image-building_{context}"]
|
|
= Adding registry authentication to prepare for image building
|
|
|
|
[role="_abstract"]
|
|
After you have updated the blueprint, you must add authentication for the container registries to build the image with embedded {microshift-short} 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.
|
|
|
|
[NOTE]
|
|
====
|
|
You can create an `/etc/osbuild-worker/osbuild-worker.toml` directory and configuration file if they do not exist.
|
|
====
|
|
|
|
.Procedure
|
|
|
|
. 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:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
[containers]
|
|
auth_file_path = "/etc/osbuild-worker/pull-secret.json"
|
|
----
|
|
|
|
. Restart the host to apply configuration changes.
|