File tree Expand file tree Collapse file tree 1 file changed +16
-19
lines changed
Expand file tree Collapse file tree 1 file changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -25,22 +25,21 @@ dockerfileCommit() {
2525 )
2626}
2727
28- # depends on docker library
29- # getArches() {
30- # local repo="$1"; shift
31- # local officialImagesUrl='https://github.com/docker-library/official-images/raw/master/library/'
32- #
33- # eval "declare -g -A parentRepoToArches=( $(
34- # find -name 'Dockerfile' -exec awk '
35- # toupper($1) == "FROM" && $2 !~ /^('"$repo"'|scratch|microsoft\/[^:]+)(:|$)/ {
36- # print "'"$officialImagesUrl"'" $2
37- # }
38- # ' '{}' + \
39- # | sort -u \
40- # | xargs bashbrew cat --format '[{{ .RepoName }}:{{ .TagName }}]="{{ join " " .TagEntry.Architectures }}"'
41- # ) )"
42- # }
43- # getArches 'phpmyadmin'
28+ getArches () {
29+ local repo=" $1 " ; shift
30+ local officialImagesUrl=' https://github.com/docker-library/official-images/raw/master/library/'
31+
32+ eval " declare -g -A parentRepoToArches=( $(
33+ find -name ' Dockerfile' -exec awk '
34+ toupper($1) == "FROM" && $2 !~ /^(' " $repo " ' |scratch|microsoft\/[^:]+)(:|$)/ {
35+ print "' " $officialImagesUrl " ' " $2
36+ }
37+ ' ' {}' + \
38+ | sort -u \
39+ | xargs bashbrew cat --format ' [{{ .RepoName }}:{{ .TagName }}]="{{ join " " .TagEntry.Architectures }}"'
40+ ) )"
41+ }
42+ getArches ' phpmyadmin'
4443
4544# Header.
4645cat << -EOH
@@ -77,9 +76,7 @@ for variant in apache fpm fpm-alpine; do
7776
7877 variantParent=" $( awk ' toupper($1) == "FROM" { print $2 }' " $variant /Dockerfile" ) "
7978
80- # depends on docker library
81- # variantArches="${parentRepoToArches[$variantParent]}"
82- variantArches=" amd64 arm32v7 arm64v8 i386 ppc64le s390x"
79+ variantArches=" ${parentRepoToArches[$variantParent]} "
8380
8481 cat << -EOE
8582
You can’t perform that action at this time.
0 commit comments