-
Notifications
You must be signed in to change notification settings - Fork 536
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
Build docker image with buildx to support new Dockerfile syntax #21960
Conversation
8e45574
to
d8a8420
Compare
.circleci/config.yml
Outdated
# Uncomment if you want to test the docker build | ||
- build-image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's already uncommented though. - is this comment accurate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanted to confirm it actually works. I'll remove the commit reverting back to commented out before merging.
Fixes: mozilla/addons#9528
Description
Explicitly use
docker buildx build
to ensure buildkit flags and syntax are available during local/ci builds. We run the make command in CI to ensure the same command is executed in both environments. This is also essentially compatible with that is executed in the github action build.Context
#21914 broke the docker build in circleci, this went unnoticed because the build only runs on master and the command was simple and using the same docker build as we have in the locale make command
build_docker_image
. There were differences in arguments, but it was assumed that docker build would support buildx context... that was wrong.Testing
You can test by adding the
-build-image
job to a workflow. It is enabled in this commit: d8a8420731e2b4ca7d83fbb98befc8f8817e5478Which will be removed before merging.