aurora icon indicating copy to clipboard operation
aurora copied to clipboard

能否支持armv7 的docker镜像

Open dongbao66 opened this issue 1 year ago • 2 comments

如题

dongbao66 avatar Apr 07 '24 15:04 dongbao66

可以

xiaozhou26 avatar Apr 07 '24 15:04 xiaozhou26

s390x的呢?

learnLi avatar Apr 07 '24 15:04 learnLi

Docker image golang:1.21 and FROM alpine:latest are all multi arch supported include s390x and armv7, and I also tried to build the s390x binary

root:~/aurora(main)$ git diff
diff --git a/build.sh b/build.sh
old mode 100644
new mode 100755
index 0a4dd3e..e96fcd8
--- a/build.sh
+++ b/build.sh
@@ -8,14 +8,7 @@ export CGO_ENABLED=0
 PKG=aurora

 targets=(
-    "windows/amd64"
-    "linux/amd64"
-    "darwin/amd64"
-    "windows/386"
-    "linux/386"
-    "darwin/386"
-    "linux/arm"
-    "linux/arm64"
+    "linux/s390x"
 )

 upxPath=$(command -v upx)
root:~/aurora(main)$ file bin/linux_s390x/aurora
bin/linux_s390x/aurora: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), statically linked, Go BuildID=sQOTdHRNsDCSnENn4ALf/AYZYeRo-C1bveUc0ooed/Gi97VzAB8As9EEqIJs5Z/E9ilxfsAv4b_6rKHZ-_D, stripped```

lysliu avatar Apr 08 '24 08:04 lysliu