tuonina 5 жил өмнө
parent
commit
0f4c42ed5f
1 өөрчлөгдсөн 16 нэмэгдсэн , 0 устгасан
  1. 16 0
      eureka-web/build.gradle

+ 16 - 0
eureka-web/build.gradle

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