pai icon indicating copy to clipboard operation
pai copied to clipboard

Prebuilt docker image for aarch64

Open huww98 opened this issue 2 years ago • 3 comments

Short summary about the issue/question: Missing prebuilt docker images for aarch64

Brief what process you are following:

We want to deploy an OpenPAI cluster on Huawei Kunpeng CPUs. But find we can't.

$ docker run ... openpai/dev-box:v1.8.0
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /usr/local/start-script.sh: exec format error

Could you provide the prebuilt docker images for aarch64 architecture? Or are there any "install from source" docs?

huww98 avatar Oct 03 '22 05:10 huww98

We don't know the base image for Kunpeng CPUs. If you want to build image for Kunpeng manually, you need to change https://github.com/microsoft/pai/blob/master/src/<servicename>/build/<servicename>.common.dockerfile. And change the FROM ... sentence.

Since we don't verity if the components work in arm architecture, this change may cause some components failed.

Binyang2014 avatar Oct 08 '22 06:10 Binyang2014

@Binyang2014 Thanks. I think the ubuntu base image would work. It has arm64 version. Do we have any documents about how every docker image is built?

huww98 avatar Oct 08 '22 07:10 huww98

please refer this line https://github.com/microsoft/pai/blob/8449892080abb949d481965d1520dcf34a75331e/tests/jenkins/stage_build.sh#L29

Binyang2014 avatar Oct 08 '22 08:10 Binyang2014