|
|
@@ -16,8 +16,6 @@ apply plugin: 'elasticsearch.test.fixtures'
|
|
|
apply plugin: 'elasticsearch.internal-distribution-download'
|
|
|
apply plugin: 'elasticsearch.rest-resources'
|
|
|
|
|
|
-ext.cloudflareZlibVersion = '1.2.8'
|
|
|
-
|
|
|
String buildId = providers.systemProperty('build.id').getOrNull()
|
|
|
boolean useLocalArtifacts = buildId != null && buildId.isBlank() == false
|
|
|
|
|
|
@@ -36,15 +34,6 @@ repositories {
|
|
|
content { includeGroup 'krallin' }
|
|
|
}
|
|
|
|
|
|
- ivy {
|
|
|
- url 'https://github.com/'
|
|
|
- patternLayout {
|
|
|
- artifact '/[organisation]/[module]/archive/refs/tags/v[revision].[ext]'
|
|
|
- }
|
|
|
- metadataSources { artifact() }
|
|
|
- content { includeGroup 'cloudflare' }
|
|
|
- }
|
|
|
-
|
|
|
// Cloud builds bundle some beats
|
|
|
ivy {
|
|
|
if (useLocalArtifacts) {
|
|
|
@@ -73,7 +62,6 @@ configurations {
|
|
|
allPlugins
|
|
|
filebeat
|
|
|
metricbeat
|
|
|
- cloudflareZlib
|
|
|
}
|
|
|
|
|
|
String beatsArch = Architecture.current() == Architecture.AARCH64 ? 'arm64' : 'x86_64'
|
|
|
@@ -87,7 +75,6 @@ dependencies {
|
|
|
allPlugins project(path: ':plugins', configuration: 'allPlugins')
|
|
|
filebeat "beats:filebeat:${VersionProperties.elasticsearch}:${beatsArch}@tar.gz"
|
|
|
metricbeat "beats:metricbeat:${VersionProperties.elasticsearch}:${beatsArch}@tar.gz"
|
|
|
- cloudflareZlib "cloudflare:zlib:${cloudflareZlibVersion}@tar.gz"
|
|
|
}
|
|
|
|
|
|
ext.expansions = { Architecture architecture, DockerBase base ->
|
|
|
@@ -112,8 +99,7 @@ ext.expansions = { Architecture architecture, DockerBase base ->
|
|
|
'docker_base' : base.name().toLowerCase(),
|
|
|
'version' : VersionProperties.elasticsearch,
|
|
|
'major_minor_version': "${major}.${minor}",
|
|
|
- 'retry' : ShellRetry,
|
|
|
- 'zlib_version' : cloudflareZlibVersion
|
|
|
+ 'retry' : ShellRetry
|
|
|
]
|
|
|
}
|
|
|
|
|
|
@@ -302,8 +288,7 @@ void addTransformDockerContextTask(Architecture architecture, DockerBase base) {
|
|
|
eachFile { FileCopyDetails details ->
|
|
|
if (details.name.equals("Dockerfile")) {
|
|
|
filter { String filename ->
|
|
|
- String result = filename.replaceAll('^RUN curl.*artifacts-no-kpi.*$', "COPY ${distributionName} /tmp/elasticsearch.tar.gz")
|
|
|
- return result.replaceAll('^RUN curl.*cloudflare/zlib.*$', "COPY zlib-${cloudflareZlibVersion}.tar.gz /tmp")
|
|
|
+ return filename.replaceAll('^RUN curl.*artifacts-no-kpi.*$', "COPY ${distributionName} /tmp/elasticsearch.tar.gz")
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -317,8 +302,6 @@ void addTransformDockerContextTask(Architecture architecture, DockerBase base) {
|
|
|
from configurations.dockerSource
|
|
|
}
|
|
|
|
|
|
- from configurations.cloudflareZlib
|
|
|
-
|
|
|
if (base == DockerBase.IRON_BANK) {
|
|
|
from (configurations.tini) {
|
|
|
rename { _ -> 'tini' }
|