Deprecation warning: Plugin support has been deprecated in version 2022.9 as the current go plugin support with go >= 1.18 does not suite the architecture of Corteza.
Corteza implements the support for Go plugins which can be used to modify default behaviour of the server and provide new functionalities like workflow functions and types.
Plugins can be added to Corteza by specifying their location with
Provide a colon separated list of paths to plugin files (plugin file has
Paths can contain wildcards and are resolved accordingly.
You can quickly disable all plugins by setting
false (enabled by default).
In case plugin is not fully compatible with Corteza, server refuses to start. It yields some variation of the following error:
Error: plugin.Open("myplugin"): plugin was built with a different version of package github.com/cortezaproject/corteza-server/pkg/rand
Plugins need to be accessible to server. You can either map files or directories via volume or copy files inside a new Docker image.
docker run --rm -it \ -v "$(pwd)/myplugin.so:/myplugin.so:ro" \ -e "PLUGINS_PATHS=/myplugin.so" \ "cortezaproject/corteza-server:2021.9"