remove the docker gradle plugin, handle building docker with shell now (#1644)

* remove the docker gradle plugin, handle with shell now



Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Joshua Fernandes 5 years ago committed by GitHub
parent 895e526cec
commit 3f878e05c4
  1. 2
      Jenkinsfile
  2. 25
      build.gradle
  3. 3
      kubernetes/.gitignore

2
Jenkinsfile vendored

@ -193,7 +193,7 @@ try {
}
stage(stage_name + 'Build image') {
sh './gradlew docker'
sh './gradlew distDocker'
}
stage(stage_name + "Test image labels") {

@ -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) {

@ -0,0 +1,3 @@
pantheon-*.tar.gz
pantheon/*
pantheon-*
Loading…
Cancel
Save