docker entrypoint that renders go templates
http://masterminds.github.io/sprig/
secret
get a secret from AWS Secrets Manager
Example:
secret "my_secret"
numCPU
return the number of CPU cores on the host
nameServers
return a list of nameservers from the container/host
hostname
get the hostname of the container/host
ec2Metadata
fetch EC2 meatada info
Example:
ec2Metadata "availability-zone"
The following environment variables are specfic to entrypoint
and will not be passed into your container:
ENTRYPOINT_TEMPLATES
ENTRYPOINT_TMPL_OPTION
RUN curl -L https://github.com/mschurenko/entrypoint/releases/download/0.1.11/entrypoint \
-o /entrypoint && chmod +x /entrypoint
# templates
WORKDIR /conf
COPY my_app.conf.tmpl .
ENTRYPOINT ["/entrypoint"]
docker run \
-e ENTRYPOINT_TEMPLATES="/conf/my_app.conf.tmpl" \
my_image:latest \
my_app /conf/my_app.conf