Sign inSign up

nihil0/j2cli

By nihil0

Updated over 7 years ago

Image
0

3.8K

nihil0/j2cli repository overview

j2cli-docker

Simple docker image for running j2 templating jobs

Usage

Define a jinja2 template as usual with template variables corresponsing to environment variables. For example, if there is an environment variable called ME=nihil0, j2cli would process the template Hello { ME } and write Hello nihil0 to stdout.

To process a local file, say myfile.jinja, mount the file into the /build directory of the container, pass any variables you want to substitute with -e arguments to docker run.

echo "Hello {{ ME }}" > sayhello.jinja

docker run -it -v /path/to/sayhello.jinja:/build/template.jinja -e ME=nihil0 nihil0/j2cli 

# Hello nihil0

Tag summary

Content type

Image

Digest

Size

31 MB

Last updated

over 7 years ago

docker pull nihil0/j2cli