Skip to content

Yasha CLI for Jinja2 template renderer Dockerfile set-up

License

Notifications You must be signed in to change notification settings

guangie88/yasha-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yashi-docker

Yashi CLI for Jinja2 template renderer Dockerfile set-up

Build Status

Description

The Docker WORKDIR is at /app, and the entrypoint starts with yashi, and therefore only the arguments to yashi should be part of the command.

You are recommended to use stdin and stdout to run yasha.

Run Example

cat ./app.conf.j2 \
    | docker run -i \
        -v "$PWD/vars/":/app/vars/ \
        guangie88/yasha:latest \
        -v /app/vars/dev.toml - \
    > ./app.conf

The above command assumes that both the Jinja2 template file app.conf.j2, and the value file ./vars/dev.toml exist. It applies the values from ./vars/dev.toml to app.conf.j2, and writes the output to app.conf.

About

Yasha CLI for Jinja2 template renderer Dockerfile set-up

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages