anbox-platform-sdk
1.23.0
Anbox Platform SDK API documentation
|
Platform plugins must be installed within the containers that Anbox Cloud is running. Generally, all plugins are installed into /usr/lib/\<target_triple\>/anbox/platforms/\<plugin_name\>
from where Anbox will load them.
The recommended way of packaging and deploying a platform plugin is by using an addon package in AMS. An addon lets you package the platform plugin and install it into the right location during container bootstrap time.
For the following example it is expected that the platform plugin is already built and you have the platform_<name>.so
file ready. In this example, we will use a platform named foo
.
In case that your platform has external dependencies you will have to install them as part of pre-start
hook as well.
First we have to create the directory structure for the addon as follows:
As next step we have to upload the addon to AMS:
Once the addon is uploaded it's available for any container. It can be referenced by applications managed by AMS or used by raw containers.
To let a raw container use the addon and start Anbox with the foo
platform plugin, run the following command:
This will create a raw container with the default image, install the foo
addon and afterwards start Anbox with the foo
platform plugin.