|
@@ -57,4 +57,20 @@ task dockerBuilder(type: Docker) {
|
|
|
push = true
|
|
|
}
|
|
|
|
|
|
+task innerDockerBuilder(type: Docker){
|
|
|
+ registry='registry.tuonq.cn'
|
|
|
+ applicationName = 'tuonq-config'
|
|
|
+ tagVersion = jar.version
|
|
|
+ addFile("./${jar.baseName}-${jar.version}.jar","app.jar")
|
|
|
+ entryPoint(["java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+08","-jar",'app.jar'])
|
|
|
+ exposePort(11111)
|
|
|
+ doFirst {
|
|
|
+ copy {
|
|
|
+ from jar
|
|
|
+ into stageDir
|
|
|
+ }
|
|
|
+ }
|
|
|
+ push = true
|
|
|
+}
|
|
|
+
|
|
|
dockerBuilder.dependsOn(bootJar)
|