Skip to content

Rendering directories recursively #105

@kozlice

Description

@kozlice

Config dirs with nested dirs are quite common, but I didn't find any flags/options in README which would help to render them in a single command.

Let's say I have the following templates:

templates/
    nginx/
        nginx.conf
        fastcgi.conf # Optional, might not be present
        conf.d/
            host-A.conf
            host-B.conf

I want to render everything inside templates/nginx into etc/nginx, preserving the directory structure.

For now I use a bash script which walks over files one by one, but it would be great to have a native option in dockerize, something like dockerize -template src:dst -recursive.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions