Open moenka opened 6 years ago
Fork https://github.com/powerman/dockerize provides a lot of new functions, e.g. you can try to use uuidv4 or one of cryptographic functions. If these won't fit your needs please consider opening issue or PR in fork's repo.
Please add a random hash generator for the templating engine since sometimes it's necessary to create hashes for configurations (e.g. Wordpress secret keys). The function name is randomHash.
The generator should take the arguments:
As a bonus the function must also work with the
default
function.Example:
{{ randomHash "32" "[a-zA-Z0-9\[\]\{\}\.]" }}
{{ default .Env.AUTH_KEY randomHash "40" }}