Commit 78c7bc49 authored by ziy's avatar ziy

调整docker 镜像注册

parent 10389ec8
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.18.0.183:5000':'172.16.22.3:5000'
docker {
dependsOn build
name"${registryAddress}/${jar.baseName}"
files jar.archivePath
buildArgs(['JAR_FILE': "${jar.archiveName}"])
noCache true
}
\ No newline at end of file
......@@ -10,7 +10,7 @@ buildscript {
}
apply plugin: com.palantir.gradle.docker.PalantirDockerPlugin
def registryAddress = project.getProperties().get('isProd') == "prod" ?'172.18.0.180:5000':'172.16.22.3:5000'
def registryAddress = project.getProperties().get('isProd') == "prod" ?'172.18.0.187:5000':'172.16.22.3:5000'
docker {
dependsOn build
......
configurations {
compile.exclude module: "spring-boot-starter-tomcat"
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-undertow'
}
\ 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