Commit ac5ceb10 authored by Eric Timmons's avatar Eric Timmons
Browse files

Fix the arches used by parent images

parent 9ff371fb
Pipeline #4537 passed with stages
in 240 minutes and 35 seconds
......@@ -38,21 +38,14 @@ dirCommit() {
)
}
getArches() {
local repo="$1"; shift
local officialImagesUrl='https://github.com/docker-library/official-images/raw/master/library/'
eval "declare -g -A parentRepoToArches=( $(
find -name 'Dockerfile' -exec awk '
toupper($1) == "FROM" && $2 !~ /^('"$repo"'|scratch|.*\/.*)(:|$)/ {
print "'"$officialImagesUrl"'" $2
}
' '{}' + \
| sort -u \
| xargs bashbrew cat --format '[{{ .RepoName }}:{{ .TagName }}]="{{ join " " .TagEntry.Architectures }}"'
) )"
}
getArches 'sbcl'
declare -g -A parentRepoToArches=(
[alpine:3.13]="amd64 arm32v6 arm32v7 arm64v8 i386 ppc64le s390x"
[alpine:3.14]="amd64 arm32v6 arm32v7 arm64v8 i386 ppc64le s390x"
[buildpack-deps:buster]="amd64 arm32v6 arm32v7 arm64v8 i386 ppc64le s390x"
[buildpack-deps:stretch]="amd64 arm32v6 arm32v7 arm64v8 i386 ppc64le s390x"
[debian:buster]="amd64 arm32v6 arm32v7 arm64v8 i386 ppc64le s390x"
[debian:stretch]="amd64 arm32v6 arm32v7 arm64v8 i386 ppc64le s390x"
)
cat <<-EOH
# this file is generated via https://github.com/etimmons/static-sbcl-docker/blob/$(fileCommit "$self")/$self
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment