Resources

Capabilities

Capability

Support

Comment

Copy single file

Supported feature

The copy can be apply to a single file

Copy single file with renaming

Supported feature

Renaming file can be useful when filename is clashing

Copy directory

Supported feature

Using / at the end of path give the ability to copy the full directory

Overview

Resource files allow a module to access one or more resources. A resource file contains a list of resources, each describing the original resource location and the destination for the module. Resources will be copied to the specified destination for the module.

Single file with renaming

The source name is specified in the GIT configuration, while the destination is the relative path to the configuration downloaded within the container module.

For example, using /home will not write to the /home directory in the Docker container but instead to config/home.

{
    "resources": [
        {
            "source": "root/rules/",
            "destination": "rules/"
        },
        {
            "source": "default-functions/snmp-trap/",
            "destination": "rules/default-fonctions/"
        },
        {
            "source": "lookups/",
            "destination": "lookups/"
        }
    ]
}

Example