mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
add jinjanator
This commit is contained in:
@@ -156,6 +156,7 @@ A collection of delicious docker recipes.
|
|||||||
## Utility
|
## Utility
|
||||||
|
|
||||||
- [x] dbatools
|
- [x] dbatools
|
||||||
|
- [x] jinjanator
|
||||||
- [x] registry-cli
|
- [x] registry-cli
|
||||||
- [x] tldextract
|
- [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
|
||||||
Reference in New Issue
Block a user