-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We use Docker cache mounts to accelerate Docker builds with Go. With cache mounts, we can cache package dependencies and the Go build cache in a persistent fashion (i.e., persists across builds). As a minor optimization, we also use a bind mount for go.mod & go.sum, to avoid a COPY statement and an extra layer. We could do the same thing for the antrea source directory, but it would add extra complexity to the Dockerfiles, with no clear benefit (~2s per build). With these changes, an incremental builds using ./hack/build-antrea-linux-all.sh takes less than a minute (instead of more than 5 minutes). Signed-off-by: Antonin Bas <[email protected]>
- Loading branch information
1 parent
3f267bb
commit 538e5f6
Showing
6 changed files
with
60 additions
and
36 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
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