-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Make docker build task incremental #49613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commits sets an output marker file for the docker build tasks so that it can be tracked as up to date. It also fixes the docker build context task to omit the build date as in input property which always left the task as out of date. relates elastic#49359
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1000, I love this PR!
One suggestion - can we also set the export tasks outputs? E.g.
diff --git a/distribution/docker/build.gradle b/distribution/docker/build.gradle
index 975c32860e1..da940f17b0f 100644
--- a/distribution/docker/build.gradle
+++ b/distribution/docker/build.gradle
@@ -214,6 +214,7 @@ subprojects { Project subProject ->
final Task exportDockerImageTask = task(exportTaskName, type: LoggedExec) {
executable 'docker'
+ outputs.file(tarFile)
args "save",
"-o",
tarFile,
This commits sets an output marker file for the docker build tasks so that it can be tracked as up to date. It also fixes the docker build context task to omit the build date as in input property which always left the task as out of date. relates #49359
This change does indeed make the build tasks |
The docker build task depends on the docker context being built, but it was not explicitly setup as an input. This commit adds the task as an input to the docker build. relates elastic#49613
The docker build task depends on the docker context being built, but it was not explicitly setup as an input. This commit adds the task as an input to the docker build. relates #49613
The docker build task depends on the docker context being built, but it was not explicitly setup as an input. This commit adds the task as an input to the docker build. relates #49613
The docker build task depends on the docker context being built, but it was not explicitly setup as an input. This commit adds the task as an input to the docker build. relates elastic#49613
This commits sets an output marker file for the docker build tasks so
that it can be tracked as up to date. It also fixes the docker build
context task to omit the build date as in input property which always
left the task as out of date.
Closes #49359