Skip to content

An image that renders an input string from env to a specified file.

Notifications You must be signed in to change notification settings

swaglive/docker-jinja2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

docker-jinja2

An image that renders an input string from env to a specified file.

Environment Variables

All environment variables are avaliable under env

  • JINJA_INPUT_FILE: The jinja2 template file path. ex: /usr/src/app/template.j2
  • JINJA_OUTPUT_FILE: A file path where the output will be stored. ex: /usr/src/app/tmp.sh

Examples

echo 'Hello {{ env.HOME }} {{ a }}' | jinjacli a=Bob > output.txt

About

An image that renders an input string from env to a specified file.

Resources

Stars

Watchers

Forks

Packages