From 0b2bd1700707cb75615f7961a5e37ceecac50957 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 1 Nov 2017 13:06:07 -0700 Subject: [PATCH] Add an additional common boilerplate to the "License" section of all images --- .template-helpers/license-common.md | 5 +++++ update.sh | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .template-helpers/license-common.md diff --git a/.template-helpers/license-common.md b/.template-helpers/license-common.md new file mode 100644 index 000000000..93cf72592 --- /dev/null +++ b/.template-helpers/license-common.md @@ -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. diff --git a/update.sh b/update.sh index b40c5069c..c50ac6224 100755 --- a/update.sh +++ b/update.sh @@ -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=