dockerize icon indicating copy to clipboard operation
dockerize copied to clipboard

Rendering directories recursively

Open kozlice opened this issue 8 years ago • 1 comments

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.

kozlice avatar Jan 09 '18 16:01 kozlice

No way to do this currently. #31 or #70 might handle this though.

jwilder avatar Mar 17 '18 21:03 jwilder