Combining Balena and Azure IoT Edge

hmm, im not sure how that script works, i remember seeing some issues around installing balena-engine. it might be worth just installing from the release files https://github.com/balena-os/balena-engine/releases/tag/v18.9.7

I can try…
Btw: this means to run balena in a container that in turn runs also on balena, right?

If that is the case maybe is related to the Known Issues at:
https://github.com/maxtheaviator/resin-azure-iotedge-multicontainer ?

Btw: this means to run balena in a container that in turn runs also on balena, right?

yes thats correct, however i think its just using the balena-engine client to talk to the socket of the balenaOS host.

I think the issue on the repo there is unrelated.

Can you please suggest how to install https://github.com/balena-os/balena-engine/releases/tag/v18.9.7 in the container?

@banto-78 i think you should be able to use wget to download the compressed file like so:

wget --no-check-certificate https://github.com/balena-os/balena-engine/releases/download/v18.9.7/balena-engine-v18.9.7-armv7.tar.gz

Then to uncompress you do something like:

tar -xzf balena-engine-v18.9.7-armv7.tar.gz

That will get you to the point where you have a folder called /balena-engine and from in there you just need to link the balena-engine binary to docker like they have done in the project

Great I am able to run Edge. I will now test it with some app modules. Thanks lot, this is a great forum! I hope I can see Balena with Azure Edge V2 soon too.

Awesome, that is great news. I think the azure v2 install should be very much the same. let us know how you get along with it.

Hi,

I’m following the tutorial (https://github.com/maxtheaviator/resin-azure-iotedge-multicontainer) and indeed I can see that the edgeAgent is running (in Azure portal and with balena ps). But there is no edgeHub. In the Dockerfile (https://github.com/maxtheaviator/resin-azure-iotedge-multicontainer/blob/master/iotedge/azure-iotedge-runtime/Dockerfile) there is only the edgeAgent.
Do you know how to deploy edgeHub too? Thanks

Hi @lpierrat, I think you would need to add a second service to your docker-compose file which is based on this image: https://hub.docker.com/_/microsoft-azureiotedge-hub

The only docker-compose file I have in the repo is this one: https://github.com/maxtheaviator/resin-azure-iotedge-multicontainer/blob/master/docker-compose.yml containing one service called iotedge. I’m not sure if I have to add edgeHub here

Yes, adding the image there should help. It should look something like:

services:
    azure:
        image: mcr.microsoft.com/azureiotedge-hub:1.0
    <your other service here>