-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #507 from self-five/c8d-multiarch
Update containerd to be properly multiarch
- Loading branch information
Showing
6 changed files
with
225 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
def unique_unsorted: | ||
# https://unix.stackexchange.com/a/738744/153467 | ||
reduce .[] as $a ([]; if IN(.[]; $a) then . else . += [$a] end) | ||
; | ||
def intersection: | ||
# add all arrays together and bit-by-bit remove anything unique from each array | ||
reduce .[] as $arr (add | unique_unsorted; . - (. - $arr)) | ||
; | ||
def deb_arch: | ||
{ | ||
# https://salsa.debian.org/dpkg-team/dpkg/-/blob/main/data/cputable | ||
# https://wiki.debian.org/ArchitectureSpecificsMemo#Architecture_baselines | ||
# http://deb.debian.org/debian/dists/unstable/main/ | ||
# http://deb.debian.org/debian/dists/stable/main/ | ||
# https://deb.debian.org/debian-ports/dists/unstable/main/ | ||
amd64: "amd64", | ||
arm32v5: "armel", | ||
arm32v7: "armhf", | ||
arm64v8: "arm64", | ||
i386: "i386", | ||
mips64le: "mips64el", | ||
ppc64le: "ppc64el", | ||
riscv64: "riscv64", | ||
s390x: "s390x", | ||
}[.] | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters