mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 22:36:20 +00:00
Docker informed us that for official multi-arch Docker builds, there needs to be a single Dockerfile and build context that can be used for each supported architecture. Therefore, rework the build to move the relevant architecture logic into the Dockerfile, and merge the aarch64 / x64 docker context builds.
14 lines
415 B
Groovy
14 lines
415 B
Groovy
apply plugin: 'base'
|
|
|
|
task buildOssDockerBuildContext(type: Tar) {
|
|
extension = 'tar.gz'
|
|
compression = Compression.GZIP
|
|
archiveClassifier = "docker-build-context"
|
|
archiveBaseName = "elasticsearch-oss"
|
|
// Non-local builds don't need to specify an architecture.
|
|
// Make this explicit via the string value.
|
|
with dockerBuildContext("<remote>", true, false)
|
|
}
|
|
|
|
assemble.dependsOn buildOssDockerBuildContext
|