15 lines
471 B
Groovy
15 lines
471 B
Groovy
import org.elasticsearch.gradle.DockerBase
|
|
|
|
apply plugin: 'base'
|
|
|
|
tasks.register("buildOssDockerBuildContext", Tar) {
|
|
archiveExtension = 'tar.gz'
|
|
compression = Compression.GZIP
|
|
archiveClassifier = "docker-build-context"
|
|
archiveBaseName = "elasticsearch-oss"
|
|
// Non-local builds don't need to specify an architecture.
|
|
with dockerBuildContext(null, true, DockerBase.CENTOS, false)
|
|
}
|
|
|
|
tasks.named("assemble").configure { dependsOn "buildOssDockerBuildContext" }
|