Add Docker BuildX config (backport #266) #269
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes Made
Adds a
.docker/docker-bake.hcl
buildx bake configuration file. The default behavior is to pulls images fromghcr.io/robotic-decision-making-lab/blue
to prime the cache, but only push to local cache.Also updates the Github action to use buildx-bake. In CI it overrides the default config to cache to/from images in the Github package registry.
All docker images ('ci', 'robot', 'desktop' and 'desktop-nvidia') can be built with:
This is a standalone PR with the buildx config; very similar files are commited in the more complex #241. If merged, this will lead to a conflict in that PR which will need to be managed by hand.
Associated Issues
Related to #241
Testing
Above
docker buildx bake
call completes successfully. Resulting images forrolling
are functional to complete joystick teleop demo.This is an automatic backport of pull request #266 done by Mergify.