jinja2_docker
Render Jinja2 templates with this Docker image
256
Use this Docker image to render a template as follows:
You have a template file (e.g., templates/test.json)
{
"msg": "Hallo {{message}}"
}
You run the following command:
docker run --rm \
-it \
-v outputs:/out \
-v templates:/data \
-e TEMPLATE=test.json.j2 \
-e OUT_FILE=/out/test.json \
dominicbreuker/jinja2_docker:latest \
message='welt'
This creates a file outputs/test.json with the following content:
{
"msg": "Hallo welt"
}
Details about Jinja2 are here.
Content type
Image
Digest
Size
25.1 MB
Last updated
about 9 years ago
Requires Docker Desktop 4.37.1 or later.