Container Engine: Add dependency to a ctrlX snap

Hello Container Engine app team,

We are trying to add an dependency to our Locator snap app to check if the "ctrlX Container Engine" is already installed on the target system before hand.

We have checked and observed that this feature is already implemted in the "ctrlX Container Engine" app as below:

Could you help to elaborate further how this feature is implemented in your app so that we are able to bring this feature to our app also?

Thank you all for your help.

Best reply by Sgilk

Hello stvihuynh ,

Dependency checking can be added by including the required snaps in the dependencies field of the package manifest. I am requesting some documentation on this functionality be included in the Github documentation.

Example from Node-RED.

 

 

    "dependencies": {
        "dependsOn": {
            "rexroth-automationcore": "^2.6.0",
            "rexroth-deviceadmin": "^2.6.0",
            "rexroth-solutions": "^2.6.0"
        }
    },

 

 

 

View original
3 replies