Add an additional common boilerplate to the "License" section of all images

This commit is contained in:
Tianon Gravi 2017-11-01 13:06:07 -07:00
parent 27a62cc610
commit 0b2bd17007
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in [the `repo-info` repository's `%%REPO%%/` directory](https://github.com/docker-library/repo-info/tree/master/repos/%%REPO%%).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

View File

@ -44,8 +44,9 @@ for image in "${images[@]}"; do
getHelp="$(cat "$repo/get-help.md" 2>/dev/null || cat "$helperDir/get-help.md")"
license="$(cat "$repo/license.md" 2>/dev/null || true)"
licenseCommon="$(cat "$repo/license-common.md" 2>/dev/null || cat "$helperDir/license-common.md")"
if [ "$license" ]; then
license=$'\n\n''# License'$'\n\n'"$license"
license=$'\n\n''# License'$'\n\n'"$license"$'\n\n'"$licenseCommon"
fi
logo=