Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Enter the information for the container registry to which you want to push the created image.

Info

This document uses Azure Container Registry administrator login credentials to speed up development and testing. In production environments, we recommend using least-privilege authentication options like service principals or repository-scoped tokens. Please see here for details.

Log in to Azure portal(Cloud Computing Services | Microsoft Azure) and select the container registry you want to target. The screen below is an example.

...

Display "Settings" - "Access Keys" from the left menu.

...

Based on the information displayed, enter the following:When using the container registry operated by i-PRO to build a development environment, please use the values in the table below for each item in the explanation below. If you want to prepare a container registry yourself, please refer to the documentation of the container registry you are using to obtain the values.

container registry name

iprocamsdk

login server

http://iprocamsdk.azurecr.io

user name

[Separately notified user name]

password

[Separately notified password]

repository name

[Separately notified repository name]

Enter the following based on the information you obtained.

  • ${SDK_DIR}\src\adamapp\test_app\container\deployment.template.json
    Enter “registryCredentials” in the above file as follows. "Container Registry Name" is the "Registry Name" of Azure Portal in lower case (same as the string before .azurecr.io in "Login Server").

    Code Block
    "registryCredentials": {
      "[container registry name]": {
        "username": "$CONTAINER_REGISTRY_USERNAME_[container registry name]",
        "password": "$CONTAINER_REGISTRY_PASSWORD_[container registry name]",
        "address": "[login server]"
      }
    }

    For example, if the container registry name is “iprocv5xcontainerregistry” and the container registry login server is “iprocv5xcontainerregistry.azurecr.io”, it will be as follows.

     

  • ${SDK_DIR}\src\adamapp\test_app\container\modules\test_app\module.json
    Enter “repository” in the above file as follows.

    Code Block
    "repository": "[login server]/test_app"

    For example, if the container registry login server is “iprocamsdk.azurecr.io” and the repository name is “dev/company-a”, it will be as follows.

    image-20240315-102005.png

  • ${SDK_DIR}\src\adamapp\test_app\container
    Create an .env file in the directory, write the container registry user name and password, and save it.

    Code Block
    CONTAINER_REGISTRY_USERNAME_[container registry name]=[user name]
    CONTAINER_REGISTRY_PASSWORD_[container registry name]=[password]

    An example is shown below.

    20240131-120216.png

...