Browse Source

修改打包参数

niantuo 6 years ago
parent
commit
5619586496

+ 1 - 1
build.gradle

@@ -23,7 +23,7 @@ buildscript {
 
 allprojects {
     group = "cn.gygxzc.cloud.tina"
-    version = "1.0"
+    version = "1.1"
 }
 
 subprojects {

+ 2 - 2
eureka-web/build.gradle

@@ -26,7 +26,7 @@ bootJar { enabled = true }
 jar { enabled = false }
 
 docker{
-    baseImage 'openjdk:8-jdk-alpine'
+    baseImage 'openjdk:8-jre-alpine'
     maintainer 'tina 976056042@qq.com'
     registry 'registry.cn-qingdao.aliyuncs.com'
 }
@@ -36,7 +36,7 @@ task dockerBuilder(type: Docker) {
     applicationName = 'registry'
     tagVersion = jar.version
     addFile("./${jar.baseName}-${jar.version}.jar","app.jar")
-    entryPoint(["java","-Djava.security.egd=file:/dev/./urandom","-jar",'app.jar'])
+    entryPoint(["java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+08","-jar",'app.jar'])
     exposePort(11001)
     doFirst {
         copy {

+ 1 - 1
eureka-web/src/main/resources/application-dev.yml

@@ -9,7 +9,7 @@ eureka:
   instance:
     hostname: localhost
     prefer-ip-address: true
-    ip-address: 192.168.1.89
+    ip-address: 192.168.1.134
     lease-renewal-interval-in-seconds: 15
     lease-expiration-duration-in-seconds: 32
   client:

+ 18 - 3
eureka-web/src/main/resources/application-prod.yml

@@ -1,14 +1,29 @@
+
+spring:
+  security:
+    user:
+      name: envir
+      password: envir
+
+#服务注册于发现配置
 #服务注册于发现配置
 eureka:
   instance:
     hostname: localhost
     prefer-ip-address: true
-    ip-address: 192.168.1.206
+    ip-address: 192.168.1.202
+    lease-renewal-interval-in-seconds: 15
+    lease-expiration-duration-in-seconds: 32
   client:
     register-with-eureka: true
-    fetch-registry: true
+    fetch-registry: false
     service-url:
-      defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
+      defaultZone: http://envir:envir@${eureka.instance.ip-address}:${server.port}/eureka/
+    registry-fetch-interval-seconds: 60
+    instance-info-replication-interval-seconds: 20
+    initial-instance-info-replication-interval-seconds: 45
+    eureka-server-read-timeout-seconds: 10
+    eureka-server-connect-timeout-seconds: 8
   server:
     enable-self-preservation: false
     eviction-interval-timer-in-ms: 60000