I have a pipeline for building docker image that has step for x86 and arm
It looks like this
pipelines:custom:construct: - step:name: 'Build x86_64 image' image: 'atlassian/default-image:4' runtime:cloud:arch: 'x86' services: - 'docker' caches: - 'docker' script: - >- bash "$BITBUCKET_CLONE_DIR/build-image" "${BRANCH:-master}" "$REPO" "${AWS_ECR_NAME}-x86_64" "$BITBUCKET_CLONE_DIR" "${IMAGE_TAGS:-latest}" - pipe: 'atlassian/aws-ecr-push-image:2.5.0' variables:AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEYAWS_DEFAULT_REGION: $AWS_DEFAULT_REGIONIMAGE_NAME: "${AWS_ECR_NAME}-x86_64" TAGS: "${IMAGE_TAGS:-latest}" - step:name: 'Build aarch64 image' image: 'atlassian/default-image:4' runtime:cloud:arch: 'arm' services: - 'docker' caches: - 'docker' script: - >- bash "$BITBUCKET_CLONE_DIR/build-image" "${BRANCH:-master}" "$REPO" "${AWS_ECR_NAME}-aarch64" "$BITBUCKET_CLONE_DIR" "${IMAGE_TAGS:-latest}" - pipe: 'atlassian/aws-ecr-push-image:2.5.0' variables:AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEYAWS_DEFAULT_REGION: $AWS_DEFAULT_REGIONIMAGE_NAME: "${AWS_ECR_NAME}-aarch64" TAGS: "${IMAGE_TAGS:-latest}"
I am getting this error on aarch64 step
<span>WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested </span>
exec /usr/local/bin/python3: exec format error
Hi @Darko Miletic
The pipe you're using, uses an amd64-based image, hence why you are receiving the error message.
I've raised a feature request on your behalf to update our pipes catalogue to be multi-platform - you may Watch this to receive future updates related to it and Vote for it to improve its visibility with regard to customer demand:
Cheers!
- Ben (Bitbucket Cloud Support)
It looks like you're new here. Sign in or register to get started.