Skip to content

mattrobenolt/envtpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envtpl

a port of https://github.com/andreasjansson/envtpl to Go

$ envtpl something.conf.tpl

Add to your Dockerfile:

ENV ENVTPL_VERSION 0.2.0
RUN set -x \
    && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* \
    && dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
    && wget -O /usr/local/bin/envtpl "https://github.com/mattrobenolt/envtpl/releases/download/$ENVTPL_VERSION/envtpl-linux-$dpkgArch" \
    && wget -O /usr/local/bin/envtpl.asc "https://github.com/mattrobenolt/envtpl/releases/download/$ENVTPL_VERSION/envtpl-linux-$dpkgArch.asc" \
    && export GNUPGHOME="$(mktemp -d)" \
    && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys D8749766A66DD714236A932C3B2D400CE5BBCA60 \
    && gpg --batch --verify /usr/local/bin/envtpl.asc /usr/local/bin/envtpl \
    && rm -r "$GNUPGHOME" /usr/local/bin/envtpl.asc \
    && chmod +x /usr/local/bin/envtpl \
    && envtpl --help \
    && apt-get purge -y --auto-remove ca-certificates wget

About

Render a template from environment variables

Resources

License

Stars

Watchers

Forks

Packages

No packages published