• SWIFT is compatible with various container image registries.
  • In SWIFT we can add different types of cloud registry add.
  • Why we add image registry in SWIFT
  • As a SWIFT needs its Transient Rackware Agent Image (TRAI) run on both side of the clusters and TRAI can be uploaded to any registry.
  • Having this feature will allow easy and secure transfer of your container image across various image registry platforms.
  • This feature will allow easy syncing of images across various container registry platforms like Docker Hub, Google Container Registry, Amazon Elastic Container Registry, Azure Container Registry etc.
  • How to Add a new Image registry in SWIFT.
    1. Add a docker registry
  • First, log in to the SWIFT dashboard and then select the 'Container Registries' menu from the panel on the left side.
  • Click on the Add button and fill out all the details as shown in the below snippet

                            

  • In the above snippet, you need to enter a friendly name according to your image registry type.
  • Then, select the Image Cloud Type. SWIFT supports various cloud image registries; in this example, we have selected Docker registry.
  • Next, provide the username, password, and email address for the Docker registry.
  • Finally, click the Add button to add a new image registry in SWIFT.
  • After adding a new image registry, you will see the details as shown below, including the Docker friendly name, registry type, and status.
  • Additionally, you can re-discover, configure the image registry (if you want to change the password and email), and delete the image registry. These actions are highlighted in the 'Actions' section in the snippet on the right side.


  • If you expand this image registry by clicking on the friendly name, you will see all the details about the newly added registry, including the summary and image repositories.





  1. Add Amazon Elastic Container Registry (AWS ECR)
  • Click on the Add button and select Amazon AWS from the list of available registries by providing a friendly name.
  • Provide your AWS credentials, including the access key and secret key and region.
  • Click the Add button to register AWS ECR in SWIFT.






  1. Add Google Container Registry (GCR)
  • You just need to provide the friendly name, choose the registry cloud type from the dropdown, and add the private key of the GCP service account.



  • Once you add the GCR registry in Swift, it will look like this:



  • You can also check by expanding the GCR registry to see the summary and image repositories associated with it. Please see below snippets.





  1. Add Azure Container Registry (ACR)
  • You just need to provide the following details while adding the Azure container registry.





  1. Friendly name: Provide as you want.
  2. Registry Cloud Type: Choose ACR from the dropdown.
  3. Subscription ID: Provide Subscription ID is a unique identifier associated with your Azure subscription
  4. Tenant ID: Provide Tenant ID that associated with your Azure Active Directory tenant. 
  5. Client ID: Provide the client ID also known as application ID that assigned to a registered application in Azure AD.
  6. Resource group: Provide the resource group to which the ACR belongs. This helps in organizing and managing the registry along with other related resources.
  7. Registry name: Put the registry name that the unique name you can assign to your Azure Container Registry instance. This is user choice. For eg. Azure-IR
  8. Registry Password: Provide the registry password, also known as an admin user password, is a credential that allows you to authenticate and perform operations on the Azure Container Registry. 
  9. Client Secret: You can provide the client secret that you create in Azure Active Directory and use to authenticate application and services. When you register an application in Azure AD, you can create a client secret for the application.
  10.  Now you can add Azure container registry and it will be discovered in SWIFT.



  1. Add Oracle Container Registry (OCIR)
  • To add an OCI container registry in SWIFT, you just need to provide some input as below.




  • As per the above snippet, you must put all the mandatory fields to add OCI image registry in SWIFT by choosing Oracle OCI in Cloud type dropdown.
  1. User ID: Provide User ID that is unique for the user in OCI, It is assigned when user is created in OCI.
  2. Compartment ID: Put the compartment ID which is logical partitions within an OCI tenancy that help organize and isolate resources.
  3. Tenant ID: Put the tenant ID . The Tenant ID in OCI refers to the root compartment OCID of your OCI tenancy. It is also known as the root compartment.
  4. API key’s fingerprint: Provide the API key. This API key is being used for authentication and authorization when interacting with OCI resources via APIs. It consists of public and private key pairs.
  5. Region: Choose the correct region from the dropdown where OCI resources are hosted.
  6. Tenancy namespace: Provide the tenancy namespace (Its optional, not a mandatory).
  7. Private key file: Attach a private key file for authentication purposes, such as generating and managing API signing keys or SSH keys.
  8. After that you can Add the OCI image registry.





  1. Add IBM Container Registry (ICR)
  • To add a IBM Container registry, You just need to put below mentioned input in SWIFT by choosing IBM Container in Cloud type dropdown.



  1. Region: Select the correct specific region where the registry is hosted.
  2. Namespace (Optional): Put the namespace name if you are created to organize and store container images in the IBM Container Registry.
  3. API key: You can provide API key directly or upload it.  This API key should be generated in IBM cloud to authenticate and authorize API requests for managing container images. 
  4. User Email: Provide the user with email associated with your IBM Cloud account for account-related activities and notifications.
  5. Then you can click on the Add button to create a IBM container registry in SWIFT.