https://github.com/guangie88/yasha-docker
Yasha CLI for Jinja2 template renderer Dockerfile set-up
https://github.com/guangie88/yasha-docker
cli dockerfile jinja2 python
Last synced: about 2 months ago
JSON representation
Yasha CLI for Jinja2 template renderer Dockerfile set-up
- Host: GitHub
- URL: https://github.com/guangie88/yasha-docker
- Owner: guangie88
- License: mit
- Created: 2018-03-14T07:43:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T09:00:49.000Z (over 8 years ago)
- Last Synced: 2025-02-28T20:26:28.705Z (over 1 year ago)
- Topics: cli, dockerfile, jinja2, python
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yashi-docker
Yashi CLI for Jinja2 template renderer Dockerfile set-up
[](https://travis-ci.org/guangie88/yasha-docker)
## 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
```bash
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`.