docker-link-helper

Search for occurrences of docker links and replace them by their value


Keywords
docker, environment-variable, link
License
MIT
Install
pip install docker-link-helper==0.0.2

Documentation

Docker Link Helper Build Status

Usage

Install via Dockerfile

RUN apt-get -y install python-setuptools 
RUN easy_install docker-link-helper

Run from entrypoint

# terminate entrypoint on error 
set -e

docker-link-helper --link alink --link anotherlink /some/file /some/other/file

This will search /some/file and /some/other/file for names of environment variables in chevrons (<>) and replace them with their values. <MYSQL_ENV_MYSQL_DATABASE> is replaced by the value of the environment variable $MYSQL_ENV_MYSQL_DATABASE.