Commit 164355c5 authored by ziy's avatar ziy

fix docker config

parent 797b8bb0
apply plugin: com.palantir.gradle.docker.PalantirDockerPlugin
def registryAddress = project.getProperties().get('isProd') == "prod" ?'172.17.200.123:5000':'172.16.22.5:5000'
docker {
dependsOn build
name"${registryAddress}/${project.group}-${jar.baseName}"
files jar.archivePath
buildArgs(['JAR_FILE': "${jar.archiveName}"])
}
\ No newline at end of file
apply plugin: com.palantir.gradle.docker.PalantirDockerPlugin
def registryAddress = project.getProperties().get('isProd') == "prod" ?'172.17.200.123:5000':'172.16.22.5:5000'
docker {
dependsOn build
name"${registryAddress}/${project.group}-${jar.baseName}"
files jar.archivePath
buildArgs(['JAR_FILE': "${jar.archiveName}"])
}
\ No newline at end of file
......@@ -8,12 +8,3 @@ buildscript {
classpath('gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.21.0')
}
}
\ No newline at end of file
apply plugin: com.palantir.gradle.docker.PalantirDockerPlugin
docker {
dependsOn build
name"${registryAddress}/${project.group}-${jar.baseName}"
files jar.archivePath
buildArgs(['JAR_FILE': "${jar.archiveName}"])
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment