Use envsubst instead of sed to parse Dockerfile.template
authorW. Trevor King <wking@tremily.us>
Sat, 28 Dec 2013 22:49:15 +0000 (14:49 -0800)
committerW. Trevor King <wking@tremily.us>
Thu, 2 Jan 2014 16:46:12 +0000 (08:46 -0800)
commita8fd8873eb81dac280dfea14aacd983e5465f2e7
tree1cc670b5883d9045cb85293d19928c690232970b
parente1a3dca924676ba2b9c90ad11eb495544dd48612
Use envsubst instead of sed to parse Dockerfile.template

Convert everything in one pass, instead of taking a separate pass for
each variable.  Thanks to aluedeke for mentioning envsubst on #docker;
I hadn't heard of it before.  It's distributed as part of gettext [1],
and not in POSIX [2], so it may be slightly less portable.  However,
envsubst and gettext are in Gentoo's x86 and amd64 stage1s, so it
can't be *that* uncommon ;).

[1]: http://www.gnu.org/software/gettext/
[2]: http://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html
15 files changed:
README.md
build.sh
buildbot/Dockerfile.template
elasticsearch/Dockerfile.template
gentoo-en-us/Dockerfile.template
gentoo-java/Dockerfile.template
gentoo-portage/Dockerfile.template
gentoo-syslog/Dockerfile.template
kibana/Dockerfile.template
memcached/Dockerfile.template
nginx/Dockerfile.template
portage/Dockerfile.template
postgresql/Dockerfile.template
redis/Dockerfile.template
stunnel/Dockerfile.template