forked from aptos-labs/aptos-core
-
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.
[build] Incremental build for docker images
New version of incremental build, which will hopefully will satisfy everyone. Primary motivation for this change is to allow to build images for cluster test and validator during local development in order to try cluster test with those images. We were using build-aws so far, however, it now takes about 8-10 minutes to build, which is longer(!) then cluster test run itself, so some change is required in this area. This version does not modify docker files in the repo, which I think was main concern previously. Also, with help of previous refactorings, this change introduces support for incremental compilation for _all_ libra images, that use libra-build How it works? Idea is same as previously - it compiles libra code in the build container and copies over artifacts into target image. It creates temporary Dockerfile from the source one, by sed'ing call to build-common. This obviously limits incremental compilation to only containers that executes build-common as a build step. Nice thing that this is fairly self-contained change that enables incremental compilation on all libra images, for example incremental compilation of validator can be done like this: ``` ./docker/validator/build.sh --incremental ``` Closes: aptos-labs#4763 Approved by: rexhoffman
- Loading branch information
1 parent
e463c2e
commit bbc1126
Showing
3 changed files
with
59 additions
and
7 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