Versions Compared

Key

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

...

Select “Build IoT Edge Solution”. This operation only performs a build.

For your The Dockerfile provided with the SDK acquires the image from the i-PRO container registry and builds the image, so for the first build, you will be asked to log in to your the container registry. The following Below is an example when the container registry is "iprocv5xcontainerregistry.azurecr.io"of an error message.

Code Block
ERROR: failed to solve: iprocv5xcontainerregistryiprocamsdk.azurecr.io/sdk/cadamappbase:1.0.0.2: failed to authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized

At this time, enter the following command on the Visual Studio Code terminal.

Code Block
docker login iprocv5xcontainerregistryiprocamsdk.azurecr.io

Then enter Enter the Username and Password that are then displayed. Enter the container registry user name and password.

...

container registry ID and password. If you wish to use i-PRO's container registry, please log in using the username and password provided to you.

Code Block
Username: [user name]
Password: [password]

If you want to use your own container registry, enter the following:

Code Block
Username: sdk-containeradam-ro
Password: H291gWcZ7Tg6Eph+TbTrsDKyYgHLtWq1vQHPuxIOZb+ACRADu2w4

If Login Succeeded is displayed, the login is successful.Next, right-click ".

Note

Please do not share your Username and Password with others.

Please note that this information is subject to change, so please always check for the latest information.

Then right click on ${SDK_DIR}\src\adamapp\test_app\container\deployment.template.json " and Select “Build Build and Push IoT Edge Solution”Solution. This operation builds and pushes to the container registry.

The build is done by running Docker buildx build as described in the Dockerfile.azureIoT file located under ${SDK_DIR}\src\adamapp\test_app\. The environment name (arm64v8) after Dockerfile. is the architecture selected in the above step. (You can see the current architecture at the bottom of Visual Studio Code)

...

Info

If you use your own container registry, Build and Push IoT Edge Solution will cause the push to fail. This is because there is a restriction that prevents you from logging into multiple container registries at the same time. Therefore, in this case, after building the image with Build IoT Edge Solution, log back into the push destination container registry and push the image manually.

Check the built image

If the build is successful, you can check the existence of the image with docker images. Below is an example.

...