service: Add support for mounting entire copied directory

This commit is contained in:
uumas
2026-01-09 17:24:01 +02:00
parent b2540e2bd3
commit b030d671b5
6 changed files with 79 additions and 7 deletions

View File

@@ -111,12 +111,14 @@ argument_specs:
- volume
- bind
- template
- copy
source:
description:
- Mount source.
- If mount type is volume, name of the volume.
- If mount type is bind, host path to bind mount inside the container.
- If mount type is template, the name of the template file, must end in .j2
- If mount type is copy, name of the file or directory to copy. Directory name must end in /.
type: str
required: true
destination:
@@ -126,7 +128,7 @@ argument_specs:
readonly:
description:
- If true, volume will be mounted as read only inside the container.
- Defaults to false for volume and bind, true for template
- Defaults to false for volume and bind, true for template and copy
type: bool
required: false
user:
@@ -140,10 +142,11 @@ argument_specs:
required: false
default: ""
mode:
description: Templated file permissions
description:
- Templated file or copied directory/file permissions.
- Defaults to 0644 for files, 0755 for directories
type: str
required: false
default: "0644"
volume_device:
description: >-
The path of a device which is mounted for the volume.