Skip to content

Docker buildx component missing in amazonlinux2-aarch64-standard:3.0 #640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alexgmin opened this issue May 23, 2023 · 9 comments
Closed

Comments

@alexgmin
Copy link

Same issue as #625 but for al2, as mentioned here. #625 (comment)

Note that even though #625 is closed, the fix is not working, as indicated in #625 (comment)

Describe the bug
A clear and concise description of what the bug is.

Refers to Docker release note:

From Docker Engine version 23.0.0, Buildx is distributed in a separate package: docker-buildx-plugin. In earlier versions, Buildx was included in the docker-ce-cli package. When you upgrade to this version of Docker Engine, make sure you update all packages.

This will result in Dockerfile stated BUILDKIT=1 to fail.

To Reproduce
Steps to reproduce the behavior:

  1. Add a new build project and set the image to amazonlinux2-aarch64-standard:3.0
  2. In buildspec.yml, use these lines:
- export DOCKER_BUILDKIT=1
- docker build .
  1. Trigger build
  2. See error:
ERROR: BuildKit is enabled but the buildx component is missing or broken.
       Install the buildx component to build images with BuildKit:
       https://docs.docker.com/go/buildx/

Expected behavior
This will success in amazonlinux2-aarch64-standard:3.0

Logs
N/A

Platform (please complete the following information):
N/A

Additional context
N/A

@larivierec
Copy link

Nice flag, I noticed this the other day and didn't open an issue right away turns out you beat me to it.

Version 0.11.0 of buildx has SBOM integration for frontends so hopefully the PR referenced here gets merged.

@BwL1289
Copy link

BwL1289 commented Aug 24, 2023

is there an update on this? Looks like a review is pending on the PR for months.

@SupSkiFun
Copy link

Still occurring on 06SEP2023.
Image aws/codebuild/amazonlinux2-aarch64-standard:3.0
Environment type ARM

Without DOCKER_BUILDKIT set you get a warning:

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/

Updating buildspec.yml with:

env:
variables:
DOCKER_BUILDKIT: 1

Causes a failure:

ERROR: BuildKit is enabled but the buildx component is missing or broken.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/

Would be nice for this to work without needing to make a symlink or install a package. Thanks.

@mhoeper
Copy link

mhoeper commented Sep 11, 2023

Same here, AWS fixed this in aws-codebuild-docker-images/al2/x86_64/standard, but forgot to fix in aws-codebuild-docker-images/al2/aarch64
/standard...

I hope this to be addressed soon, as this should be easy one.

@Taikono-Himazin
Copy link

Please let me know the progress on this.
I think this is a big problem and a simple solution, but the fix is too slow.

@rjdsgomes
Copy link

Hi, any updates on this?

@abhishek-parative
Copy link

Still affected by this issue

@vib8m
Copy link

vib8m commented Jan 7, 2024

Still facing this. Any updates?

@Dylan-AWS
Copy link
Contributor

This was addressed in #697

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants