-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tasks to build Docker build context artifacts (#41819)
This commit adds some tasks to generate dedicated Docker build context artifacts.
- Loading branch information
1 parent
ece62c6
commit 3c7a75c
Showing
4 changed files
with
48 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apply plugin: 'base' | ||
|
||
task buildDockerBuildContext(type: Tar) { | ||
extension = 'tar.gz' | ||
compression = Compression.GZIP | ||
archiveClassifier = "docker-build-context" | ||
archiveBaseName = "elasticsearch" | ||
with dockerBuildContext(false, false) | ||
} | ||
|
||
assemble.dependsOn buildDockerBuildContext |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apply plugin: 'base' | ||
|
||
task buildOssDockerBuildContext(type: Tar) { | ||
extension = 'tar.gz' | ||
compression = Compression.GZIP | ||
archiveClassifier = "docker-build-context" | ||
archiveBaseName = "elasticsearch-oss" | ||
with dockerBuildContext(true, false) | ||
} | ||
|
||
assemble.dependsOn buildOssDockerBuildContext |
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