mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add jinjanator
This commit is contained in:
parent
267e9b2af8
commit
a5e4dc8fe4
@ -156,6 +156,7 @@ A collection of delicious docker recipes.
|
||||
## Utility
|
||||
|
||||
- [x] dbatools
|
||||
- [x] jinjanator
|
||||
- [x] registry-cli
|
||||
- [x] tldextract
|
||||
|
||||
|
19
jinjanator/Dockerfile
Normal file
19
jinjanator/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
#
|
||||
# Dockerfile for jinjanator
|
||||
#
|
||||
|
||||
FROM alpine:3.20
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache py3-pip \
|
||||
&& mkdir -p ~/.config/pip/ \
|
||||
&& echo -e '[global]\nbreak-system-packages = true' > ~/.config/pip/pip.conf \
|
||||
&& pip3 install jinjanator \
|
||||
jinjanator-plugin-ansible \
|
||||
jinjanator-plugin-format-toml \
|
||||
jinjanator-plugin-format-xml \
|
||||
&& jinjanate --version
|
||||
|
||||
ENTRYPOINT ["jinjanate"]
|
||||
CMD ["--help"]
|
14
jinjanator/README.md
Normal file
14
jinjanator/README.md
Normal file
@ -0,0 +1,14 @@
|
||||
jinjanator
|
||||
==========
|
||||
|
||||
[jinjanator][1] is a CLI tool to render Jinja2 templates.
|
||||
|
||||
```bash
|
||||
$ alias jinjanate='docker run --rm -v $PWD:/tmp -w /tmp vimagick/jinjanator'
|
||||
$ echo '<data><name>{{ name }}</name><age>{{ age }}</age></data>' > person.xml.j2
|
||||
$ echo '{"name":"Andrew", "age":31}' > person.json
|
||||
$ jinjanate person.xml.j2 person.json
|
||||
<data><name>Andrew</name><age>31</age></data>
|
||||
```
|
||||
|
||||
[1]: https://github.com/kpfleming/jinjanator
|
Loading…
Reference in New Issue
Block a user