forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docker] Use ccache and Gradle cache across builds
This patch uses buildkits `--mount=type=cache` syntax to allow the builds ccache and Gradle cache to be used across Docker builds. This speeds up the Docker build when re-building the thirdparty, C++, and Java modules and mirrors the best practices for non-Docker based builds. See the buildkit documentation for details: https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/experimental.md#run---mounttypecache Below shows the runtime difference for subsequent builds of the thirdparty target and Kudu target before and after this change: `thirdparty` target: - Before: 1:18:13 - After: 0:17:47 `kudu` target: - Before: 0:19:10 - After: 0:04:08 Change-Id: Ie21ed47983b990e9d2aac419454b9a37a0600334 Reviewed-on: http://gerrit.cloudera.org:8080/16181 Tested-by: Kudu Jenkins Reviewed-by: Bankim Bhavsar <[email protected]> Reviewed-by: Greg Solovyev <[email protected]> Reviewed-by: Attila Bukor <[email protected]>
- Loading branch information
1 parent
60db4ae
commit e81caa8
Showing
3 changed files
with
40 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters