Fix inclusion of Dockerfile examples
This commit is contained in:
parent
8281ad1663
commit
cca560535d
@ -30,7 +30,7 @@ getArches() {
|
|||||||
local officialImagesUrl='https://github.com/docker-library/official-images/raw/master/library/'
|
local officialImagesUrl='https://github.com/docker-library/official-images/raw/master/library/'
|
||||||
|
|
||||||
eval "declare -g -A parentRepoToArches=( $(
|
eval "declare -g -A parentRepoToArches=( $(
|
||||||
find -name 'Dockerfile' -exec awk '
|
find -maxdepth 3 -name 'Dockerfile' -exec awk '
|
||||||
toupper($1) == "FROM" && $2 !~ /^('"$repo"'|scratch|microsoft\/[^:]+)(:|$)/ {
|
toupper($1) == "FROM" && $2 !~ /^('"$repo"'|scratch|microsoft\/[^:]+)(:|$)/ {
|
||||||
print "'"$officialImagesUrl"'" $2
|
print "'"$officialImagesUrl"'" $2
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user