Env variables for automating build scripts.
The following helps automate build scripts. Ideally add to the image updates for the ‘current images’ (i.e. not past their end-of-life date)
Example
<code class="text">
cat ./scripts/${DISTRIB_ID}/${DISTRIB_CODENAME}/install/ruby.sh | sudo -E "PATH=$PATH" sh
</code>
Set environment variables (these are defined in LSB, for example on Ubuntu /etc/lsb-release):
<code class="text">
DISTRIB_ID=Apline
DISTRIB_RELEASE=3.7.0
DISTRIB_CODENAME=3.7
DISTRIB_DESCRIPTION="Alpine 3.7.0"
</code>
This will greatly help build script automation.
(from redmine: issue id 8791, created on 2018-04-12)