Skip to content

Commit

Permalink
Add an additional common boilerplate to the "License" section of all …
Browse files Browse the repository at this point in the history
…images
  • Loading branch information
tianon committed Nov 1, 2017
1 parent 27a62cc commit 0b2bd17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .template-helpers/license-common.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 2 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 0b2bd17

Please sign in to comment.