2019-05-06 21:04:13 -04:00
|
|
|
apply plugin: 'base'
|
|
|
|
|
2020-07-31 07:09:04 -04:00
|
|
|
tasks.register("buildDockerBuildContext", Tar) {
|
2020-06-23 03:11:46 -04:00
|
|
|
archiveExtension = 'tar.gz'
|
2019-11-14 06:01:23 -05:00
|
|
|
compression = Compression.GZIP
|
|
|
|
archiveClassifier = "docker-build-context"
|
|
|
|
archiveBaseName = "elasticsearch"
|
2020-05-12 06:10:05 -04:00
|
|
|
// Non-local builds don't need to specify an architecture.
|
|
|
|
// Make this explicit via the string value.
|
|
|
|
with dockerBuildContext("<remote>", false, false)
|
2019-05-06 21:04:13 -04:00
|
|
|
}
|
|
|
|
|
2020-07-31 07:09:04 -04:00
|
|
|
tasks.named("assemble").configure {dependsOn "buildDockerBuildContext"}
|