4 Working with Execution Environments
The Private Automation Hub can host execution environments which are containers that you can use with Oracle Linux Automation Manager control and execution plane nodes. Working with execution environment containers requires having a user that is a member of a group with permissions to manage execution environments. See Setting Up Permissions for Groups, and Users for more information about groups and permissions to determine how to configure Private Automation Hub for your content curators and developers.
Configure a Remote Container Registry
Sometimes, Oracle Linux Automation Manager servers can't directly access the Oracle Container Registry to obtain execution environments. In these scenarios, you can install Private Automation Hub in a location accessible to the Oracle Linux Automation Manager and the Oracle Container Registry. You can then configure the Private Automation Hub to periodically download the required execution environments from the Oracle Container Registry so that Oracle Linux Automation Manager can pull them from Private Automation Hub when required.
To configure a connection to a remote container registry, such as the Oracle Container Registry, do the following:
-
Log into Private Automation Hub.
-
From the Execution Environments section, click Remote Registries.
The Remote Registries page appears.
- Click Add remote registry.
The Add remote registry dialogue appears.
- In the Name field, enter a name. For example, Oracle Container Registry.
- In the URL field, enter a base URL for the remote container registry. For
example,
https://container-registry.oracle.com/
. - In the Username field, enter a user name.
- In the Password field, enter a password.
- Click Show advanced options.
- In the Proxy URL field, enter a proxy URL if required by your network.
- In the Proxy username field, enter a user name.
- In the Proxy Password field, enter a password.
- If required, enable TLS validation.
- In the Client key field, enter a PEM encoded private key for TLS authentication.
- In the Client certificate field, enter a PEM encoded client certificate for TLS authentication.
- From the Download concurrency list, select the total number of simultaneous connections, if required.
- From the Rate Limit field, enter a limit for the total download rate in requests per second.
- Click Save.
Creating an Execution Environment with Remote Registry
-
Log into Private Automation Hub.
-
From the Execution Environments section, click Execution Environments.
The Execution Environments page appears.
- Click Add execution environments.
The Add execution environment appears.
- In the Name field, enter an execution environment name to represent the
container image. Container names can only contain alphanumeric characters, ".",
"_", "-" and a up to one "/". For example,
olamprivatehub-ee
. - In the Upstream name field, the namespace/name format for containers that
use a namespace. Use the library/name format with containers that use a library.
For example,
oracle_linux_automation_manager/olam-ee
. - From the Registry list, select a remote registry that you have configured. For more information, see Configure a Remote Container Registry.
- In the add tag(s) to include, enter the name of the tag you want to include from
the remote registry. For example,
latest
. - Click Add.
The added tag appears in the Currently included tags list.
- In the add tag(s) to exclude, enter the name of the tag you want to exclude from
the remote registry. For example,
dev
. - Click Add.
The added tag appears in the Currently excluded tags list.
- Click Save.
The new execution environment appears in the Execution Environment page.
Synchronizing an Execution Environment from a Remote Registry
-
Log into Private Automation Hub.
-
From the Execution Environments section, click Execution Environments.
The Execution Environments page appears.
- Click the menu button on the container you want to synchronize.
- Click Sync from registry.
An info alert dialogue box appears stating
Sync started for execution environment "<container_name>". See the task management detail page for the status of this task.
If a new version of the container exists, the new version is uploaded and the Last Modified field changes to the present time.
View Execution Environment Details
-
Log into Private Automation Hub.
-
From the Execution Environments section, click Execution Environments.
The Execution Environments page appears.
- Click the container repository name.
The Detail tab appears with the command to pull the image using Podman.
- Click the Activity tab.
A list of changes and the dates when the changes occurred appear.
- Click the Images tab.
Information about different versions of the image appears. You can add or edit tags or delete the image.
- Click the Access tab.
- If you want to give users access, click Select a user.
The Select a user dialog appears.
- From the list, select a user.
- Click Next.
- From the list, select one or more roles to apply to the user.
- Click Next.
- View the preview of your selections, then click Add.
- If you want associate the execution environment to a new group, click Select
a group.
The Select a group dialog appears.
- From the list, select a group.
- Click Next.
- From the list, select one or more roles.
The preview area appears.
- Click Add.