DockerBuild v0.3.3 DockerBuild.Plugins behaviour View Source
A behaviour for a plugin system allowing functionality to be extended when building the docker image.
By implementing the optional callbacks the docker file can be changed at various points.
All callbacks are optional.
Creating a plugin
- Create module e.g.
MyProject.MyPlugin
- Add
use DockerBuild.Plugins
- Implement the required callbacks to modify the docker file or
.dockerignore
- To fetch a plugin config value with the plugin callback use
plugin_config(context, key)
wherecontext
is either theconfig
ordf
parameter passed to the callback.
Link to this section Summary
Callbacks
Invoked to discover the command to use for compiling assets.
Invoked before copying assets into the docker image
Invoked before getting mix dependencies
Invoked when creating the .dockerignore file.
Link to this section Types
The dockerfile config
The dockerfile
Link to this section Callbacks
Invoked to discover the command to use for compiling assets.
Only one plugin should be used that implements this function.
Invoked before copying assets into the docker image
Invoked before getting mix dependencies
Invoked when creating the .dockerignore file.
A list of addition lines can be returned which are added to the file.