alpinelinux / alpine-chroot-install

Install Alpine Linux in chroot with a breeze. Build ARM on Travis CI or any other x86_64 CI.
MIT License
290 stars 59 forks source link

Enable arm64 support #27

Open pierregondois opened 3 years ago

pierregondois commented 3 years ago

Hello, I am trying to run alpine-chroot-install on an arm64 machine. The script downloads and uses an x86_64 binary of apk. https://github.com/alpinelinux/alpine-chroot-install/blob/master/alpine-chroot-install#L81

Would it be possible to:

  1. Release an arm64 version of apk (and maybe an armeabi version aswell ?)
  2. Modify script to download the right version of apk depending on the arch of the machine

Regards

theoparis commented 2 years ago

It seems like it's possible by using environment variables and the arch argument:

APK_TOOLS_URI="https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.12.9/aarch64/apk.static" \
APK_TOOLS_SHA256="0164d47954c8a52e8ed10db1633174974a3b1e4182a1993a5a8343e394ee1bbc" \
  alpine-chroot-install \
 -a aarch64 \
 -d ...