Consistent use of volume mounts for faster builds

Description

When building PMM components or artifacts using docker, the volume mounts have proven to be efficient in speeding up the builds and saving on the network traffic. However, their use is inconsistent. We want to see a consistent use of volume mounts covering the following:

  • go module cache

  • go build cache

  • yarn cache (UI components)

  • dnf cache (packages)

A good example of using the mounts (tested) can be found in https://github.com/percona/pmm/pull/3299/files#diff-f24594f1d98096ba871dd0174562d39c84c9503315ef5bcfcb34f35059342182R141-R145

How to test

Run QAA

Checks the build logs and confirm the cache is being used when building components/artifacts using docker.

How to document

None

Activity

Show:

Details

Assignee

Reporter

Priority

Components

Needs QA

Yes

Needs Doc

No

Story Points

Smart Checklist

Created February 11, 2025 at 9:54 AM
Updated yesterday