@@ -19,13 +19,13 @@ export interface dockerPlatform {
1919 variant ?: string ;
2020}
2121
22- /** Debian packages, get from `dpkg-architecture --list -L | grep 'musl-linux-' | sed 's|musl-linux-||g' | xargs`, version 1.21.1, Ubuntu */
22+ /** Debian packages arch's */
2323export type debianArch = "all" | "armhf" | "armel" | "mipsn32" | "mipsn32el" | "mipsn32r6" | "mipsn32r6el" | "mips64" | "mips64el" | "mips64r6" | "mips64r6el" | "powerpcspe" | "x32" | "arm64ilp32" | "i386" | "ia64" | "alpha" | "amd64" | "arc" | "armeb" | "arm" | "arm64" | "avr32" | "hppa" | "m32r" | "m68k" | "mips" | "mipsel" | "mipsr6" | "mipsr6el" | "nios2" | "or1k" | "powerpc" | "powerpcel" | "ppc64" | "ppc64el" | "riscv64" | "s390" | "s390x" | "sh3" | "sh3eb" | "sh4" | "sh4eb" | "sparc" | "sparc64" | "tilegx" ;
24- export function debianControlToDockerPlatform ( Architecture : debianArch , variant : "linux" | "android" = "linux" ) : dockerPlatform {
24+ export function debianArchToDockerPlatform ( Architecture : debianArch , variant : "linux" | "android" = "linux" ) : dockerPlatform {
2525 const platform : dockerPlatform = { os : variant || "linux" , architecture : Architecture as any } ;
2626 if ( Architecture === "all" ) platform . architecture = "amd64" ;
2727 else if ( Architecture === "amd64" ) platform . architecture = "amd64" ;
28- else if ( Architecture === "i386" ) platform . architecture = "ia32 " ;
28+ else if ( Architecture === "i386" ) platform . architecture = "386 " ;
2929 else if ( Architecture === "arm64" ) {
3030 platform . architecture = "arm64" ;
3131 platform . variant = "v8" ;
@@ -37,8 +37,9 @@ export function debianControlToDockerPlatform(Architecture: debianArch, variant:
3737 platform . variant = "v6"
3838 } else if ( Architecture === "s390" ) platform . architecture = "s390" ;
3939 else if ( Architecture === "s390x" ) platform . architecture = "s390x" ;
40- else if ( Architecture === "ppc64" || Architecture === "ppc64el" ) platform . architecture = "ppc64" ;
41- else if ( Architecture === "mipsel" ) platform . architecture = "mipsel" ;
40+ else if ( Architecture === "ppc64" ) platform . architecture = "ppc64" ;
41+ else if ( Architecture === "ppc64el" ) platform . architecture = "ppc64le" ;
42+ else if ( Architecture === "mipsel" ) platform . architecture = "mipsle" ;
4243 else if ( Architecture === "mips" ) platform . architecture = "mips" ;
4344 return platform ;
4445}
0 commit comments