Skip to content

Commit

Permalink
Add a separate explicit message for architectures which are not suppo…
Browse files Browse the repository at this point in the history
…rted for an image

This is to handle explicitly the case of images that were supported once but are no longer supported (like "openjdk" on s390x and ppc64le).
  • Loading branch information
tianon committed Oct 11, 2019
1 parent 2afdf83 commit cab387a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .template-helpers/generate-dockerfile-links-partial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ if [ -z "${BASHBREW_LIBRARY:-}" ]; then
repo="https://github.com/docker-library/official-images/raw/master/library/$repo"
fi

if [ -n "$ARCH_SPECIFIC_DOCS" ] && archTags="$(bashbrew cat --format '{{ range .Entries }}{{ if .HasArchitecture arch }}{{ .Tags | first }}{{ "\n" }}{{ end }}{{ end }}' "$repo")" && [ -z "$archTags" ]; then
echo "**WARNING:** THIS IMAGE *IS NOT SUPPORTED* ON THE \`$BASHBREW_ARCH\` ARCHITECTURE"
exit
fi

bashbrew cat \
-F "$(dirname "$BASH_SOURCE")/$(basename "$BASH_SOURCE" .sh).tmpl" \
"$repo"
-F "$(dirname "$BASH_SOURCE")/$(basename "$BASH_SOURCE" .sh).tmpl" \
"$repo"

0 comments on commit cab387a

Please sign in to comment.