dougbtv / docker-asterisk

Some dockerfiles for whipping up an asterisk server
283 stars 135 forks source link

Fixes #62. Adds installation of `gettext`package #63

Closed michaelkrog closed 7 years ago

michaelkrog commented 7 years ago

This PR adds installation of gettextpackage in order to be able to use envsubst. This makes it possible use envsubst in Dockerfiles inheriting from dougbtv/asterisk13.

Example

FROM dougbtv/asterisk13:latest

ENV dbhost=mysql
ENV dbname=asterisk
ENV dbuser=root
ENV dbpass=
ENV dbport=3306

COPY config/res_mysql_template.con /etc/asterisk

CMD envsubst < /etc/asterisk/res_mysql_template.conf > /etc/asterisk/res_mysql.conf && asterisk -f
dougbtv commented 7 years ago

Looks great Michael -- thank you a bunch for the contribution!