Using 8.1.2 orb to create ecr with buildx to use ARM64 architecture is not working.
I'm trying to generate and push an ECR image using [email protected] with ARM64 architecture but when I try the execution I'm stuck with an error ocurring at the https://github.com/CircleCI-Public/aws-ecr-orb/blob/master/src/scripts/docker-buildx.sh script. The error says "ERROR: "docker buildx build" requires exactly 1 argument.". This is in the last command of the sh script.
docker --context builder buildx build \
-f "${PARAM_PATH}"/"${PARAM_DOCKERFILE}" \
${docker_tag_args} \
--platform "${PARAM_PLATFORM}" \
--progress plain \
"$@" \
"${PARAM_PATH}"
All previous commands are executed correctly, below is the part of my yaml file that is calling the sh script.
- aws-ecr/build-and-push-image:
extra-build-args: '--build-arg ssh_prv_key="$(base64 ~/.ssh/id_rsa)" --build-arg ssh_pub_key="$(base64 ~/.ssh/id_rsa.pub)"'
registry-id: AWS_ECR_REGISTRY_ID
aws-access-key-id: ACCESS_KEY_ID
aws-secret-access-key: SECRET_ACCESS_KEY
region: 'AWS_REGION'
platform: linux/arm64
profile-name: CIRCLECI_NAME
repo: REPO_NAME
skip-when-tags-exist: false
tag: 'latest'
Am I missing a parameter? I already review all the documentation about it but could not found the problem.
Just wanted to add that now is working when executing it without the extra-build-args parameter. Wonder if the command is hitting max linux command line size with it, don't have a specific use for extra-build-args at the moment to test it again, but will test it as soon as I have a case for it.
Hey @heberrealself,
Just wanted to let you know that the extra-build-args were not being evaluated correctly. I went ahead and implemented a fix in PR #245 and will cut a release when all the issues are addressed.
Thanks for your contributions!
Best, Brian
@brivu
When do you think, you are planning to cut out release ?
Thanks Rajesh
Hello Rajesh, sorry to keep you waiting, we found the problem was in the parameters we were sending and now is working fine. We have been using the ARM64 architecture for a couple of months now and all without inconveniences.
Thank you for the follow up and wish you a great day.
Heber.
On Mon, Nov 28, 2022 at 4:38 PM RajeshKumar Bolisetty < @.***> wrote:
@brivu https://github.com/brivu
When do you think, you are planning to cut out release ?
Thanks Rajesh
— Reply to this email directly, view it on GitHub https://github.com/CircleCI-Public/aws-ecr-orb/issues/224#issuecomment-1329845616, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZOEGLLPIOG3MBVAMAA6YZ3WKUX5PANCNFSM6AAAAAAQIDYU6I . You are receiving this because you were mentioned.Message ID: @.***>