DEV Community

Using Cognitive Services Containers with Azure IoT Edge

Paul DeCarlo on April 30, 2019

In this post we will cover how to enable use of Cognitive Services Containers within an Azure IoT Edge Deployment. Introduction IoT S...
Collapse
 
manuinnz profile image
Emmanuel Auffray

Quick one please.

I get how to specify the cpu and ram of a docker run but struggle to find how to speicfy this in the deployment template of egde. Would there be a docker in particular I could review?

Cheers
Manu

Collapse
 
toolboc profile image
Paul DeCarlo Microsoft Azure

Great question, you can find examples of Memory and Cpu* "container create options" in the docker "create options" documentation.

Cheers!

Collapse
 
geekloper profile image
geekloper • Edited

Very helpful, thank you !


When i configured the PortBindings, the port wasn't exposed.

So i added ExposedPorts before PortBindings to expose the port :

{
    "ExposedPorts": {
        "5000/tcp": {}
    },
    "HostConfig": {
        "PortBindings": {
            "5000/tcp": [
                {
                    "HostPort": "5000"
                }
            ]
        }
    }
}

Edit : Apparently, it's known issue.

Collapse
 
tam66662 profile image
Tam66662

Thank you! This was extremely helpful guidance. I wish Microsoft would have included this information in their instructions for ACS containers (docs.microsoft.com/en-us/azure/cog...).

I searched hi and low online for any articles related to creating IoT Edge Modules for existing docker containers such as this, but couldn't find anything. I was only able to find your article by a cryptic search for "iot edge module docker \"eula\"".

Thanks again for your writeup, it got me one step further!

Collapse
 
samuleduke profile image
samuleduke

Great blog post! The combination of Cognitive Services Containers with Azure IoT Edge is a game-changer for IoT solutions. It empowers developers to create smarter, more efficient applications. For businesses looking to leverage IoT's potential, to Hire IoT developers is crucial. They'll bring innovation, expertise, and ensure successful implementation.