Commit 0c02e63f authored by xu.gao's avatar xu.gao

docker

parent 56b9ac78
buildscript {
repositories {
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
}
dependencies {
classpath('gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.21.0')
}
}
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}"])
}
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