mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
This PR resurrects support for building Docker images based on one of Red Hat's UBI images. It also adds support for running the existing Docker tests against the image. The image is named `elasticsearch-ubi8:<version>`. I also changed the Docker build file uses enums instead strings in a lot of places, for added rigour.
14 lines
471 B
Groovy
14 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" }
|