How to migrate from previous addon versions
Starting with Anbox Cloud 1.12, the following hooks are deprecated and should be replaced:
-
install
should be replaced withpre-start
-
prepare
should be replaced withpost-start
-
restore
should be replaced withpre-start
-
backup
should be replaced withpost-stop
Be aware that the new hooks run for all container types. To execute a hook for only regular or only base containers, use the new CONTAINER_TYPE
environment variable. This variable is set to either base
or regular
.
For example, if you want to execute a hook only when your application is bootstrapped, you can do the following:
if [ "$CONTAINER_TYPE" = "regular" ]; then
exit 0
fi
# Rest of the code for your addon
Copying your existing addons without modifications might have unintended side effects, because your hooks will run for every container.
Last updated 1 year, 1 month ago.