This is part of a series of articles that demonstrate how to install Balena-engine on PLCnext controller and work with OCI containers. In this article, we will install the Balena-engine and start OCI containers.
Download the balena-engine app from the PLCnext Store and install in the WBM.
https://www.plcnextstore.com/#/
root@axcf2152:~# balena-engine run -it --network=host --privileged --name=bacnetgw dclark3774/bacnet:v005
This command will install and create your container which will run with the balena-engine after download.
Now you can start and stop your BACnet gateway container anytime by using the following commands.
root@axcf2152:~# balena-engine start bacnetgw
root@axcf2152:~# balena-engine stop bacnetgw
this set of commands will create the necessary scheduling task with Balena Engine.
balena-engine container update --restart unless-stopped bacnetgw
View the PDF in this repository for setup and use of the BACnet gateway once it is installed and running.
To view the log file from the container, type the below command:
balena-engine logs bacnetgw