|
|
|
@ -24,7 +24,6 @@ plugins { |
|
|
|
|
id 'me.champeau.gradle.jmh' version '0.4.8' apply false |
|
|
|
|
id 'net.ltgt.errorprone' version '0.8.1' |
|
|
|
|
id 'net.researchgate.release' version '2.7.0' |
|
|
|
|
id "com.palantir.docker" version "0.22.1" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
group = 'tech.pegasys.pantheon' |
|
|
|
@ -481,6 +480,7 @@ distZip { |
|
|
|
|
// simple for use in docker |
|
|
|
|
tasks.register("dockerDistUntar") { |
|
|
|
|
dependsOn distTar |
|
|
|
|
dependsOn distZip |
|
|
|
|
def dockerBuildDir = "build/docker-pantheon/" |
|
|
|
|
def distTarFile = distTar.outputs.files.singleFile |
|
|
|
|
def distTarFileName = distTar.outputs.files.singleFile.name.replace(".tar.gz", "") |
|
|
|
@ -495,15 +495,22 @@ tasks.register("dockerDistUntar") { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
docker { |
|
|
|
|
def image_tag = "develop" |
|
|
|
|
task distDocker(type: Exec) { |
|
|
|
|
dependsOn dockerDistUntar |
|
|
|
|
name "pegasyseng/pantheon-kubernetes:${image_tag}" |
|
|
|
|
dockerfile file('kubernetes/Dockerfile') |
|
|
|
|
files "build/docker-pantheon/" |
|
|
|
|
buildArgs(['BUILD_DATE': buildTime(), 'VERSION': rootProject.version, 'VCS_REF': getCheckedOutGitCommitHash()]) |
|
|
|
|
pull true |
|
|
|
|
noCache true |
|
|
|
|
def image_tag = "develop" |
|
|
|
|
def image="pegasyseng/pantheon-kubernetes:${image_tag}" |
|
|
|
|
def dockerBuildDir = "build/docker-pantheon/" |
|
|
|
|
workingDir "${dockerBuildDir}" |
|
|
|
|
|
|
|
|
|
doFirst { |
|
|
|
|
copy { |
|
|
|
|
from file("${projectDir}/kubernetes/Dockerfile") |
|
|
|
|
into(workingDir) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
executable "sh" |
|
|
|
|
args "-c", "docker build --build-arg BUILD_DATE=${buildTime()} --build-arg VERSION=${rootProject.version} --build-arg VCS_REF=${getCheckedOutGitCommitHash()} -t ${image} ." |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) { |
|
|
|
|