Code Monkey home page Code Monkey logo

entrypoint's Introduction

entrypoint

release CircleCI

docker entrypoint that renders go templates

Template Functions

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"

Special Environment Variales

The following environment variables are specfic to entrypoint and will not be passed into your container:

ENTRYPOINT_TEMPLATES
ENTRYPOINT_TMPL_OPTION

Add this to your Dockerfile(s)

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"]

Run your docker container

docker run \
-e ENTRYPOINT_TEMPLATES="/conf/my_app.conf.tmpl" \
my_image:latest \
my_app /conf/my_app.conf

entrypoint's People

Stargazers

Matt Schurenko avatar El Chapo avatar Francesco Ciocchetti avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.