autowarefoundation / autoware

Autoware - the world's leading open-source software project for autonomous driving
https://www.autoware.org/
Apache License 2.0
8.58k stars 2.88k forks source link

refactor(docker): use Docker build cache to cache deb files #4721

Closed youtalk closed 1 month ago

youtalk commented 1 month ago

Description

This PR introduces the Docker build cache.

https://docs.docker.com/build/cache/

This will cache the deb files downloaded by apt-get install into the container registry, which is expected to speed up the installation of dependent packages.

A separate PR will also cache colcon build's ccache to the container registry.

Tests performed

https://github.com/autowarefoundation/autoware/actions/runs/9091177421

Effects on system behavior

Not applicable.

Interface changes

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

After all checkboxes are checked, anyone who has write access can merge the PR.