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_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
IMAGE_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_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
IMAGE_NAME: "${AWS_ECR_NAME}-aarch64"
TAGS: "${IMAGE_TAGS:-latest}"
I am getting this error on aarch64 step
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/bin/python3: exec format error
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.