diff --git a/blade-gateway/Dockerfile b/blade-gateway/Dockerfile index 13bab8721..e22faafca 100644 --- a/blade-gateway/Dockerfile +++ b/blade-gateway/Dockerfile @@ -10,6 +10,6 @@ EXPOSE 9999 ADD ./target/blade-gateway.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar","-Xms128m","-Xmx512m", "app.jar"] CMD ["--spring.profiles.active=dev"] diff --git a/blade-ops/blade-xxljob-admin/Dockerfile b/blade-ops/blade-xxljob-admin/Dockerfile index ce180e9ea..d12a563c0 100644 --- a/blade-ops/blade-xxljob-admin/Dockerfile +++ b/blade-ops/blade-xxljob-admin/Dockerfile @@ -10,5 +10,5 @@ EXPOSE 7009 ADD ./target/blade-xxljob-admin.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar","-Xms128m","-Xmx512m", "app.jar"] CMD ["--spring.profiles.active=test"] diff --git a/blade-service/logpm-aftersales/Dockerfile b/blade-service/logpm-aftersales/Dockerfile index be3ed9088..7bab3d05c 100644 --- a/blade-service/logpm-aftersales/Dockerfile +++ b/blade-service/logpm-aftersales/Dockerfile @@ -10,5 +10,5 @@ EXPOSE 6000 ADD ./target/logpm-aftersales.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar","-Xms128m","-Xmx512m", "app.jar"] CMD ["--spring.profiles.active=test"] diff --git a/blade-service/logpm-basic/Dockerfile b/blade-service/logpm-basic/Dockerfile index 413e22c85..94c38cf32 100644 --- a/blade-service/logpm-basic/Dockerfile +++ b/blade-service/logpm-basic/Dockerfile @@ -10,5 +10,5 @@ EXPOSE 8300 ADD ./target/logpm-basic.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "-Xms128m","-Xmx512m","app.jar"] CMD ["--spring.profiles.active=test"] diff --git a/blade-service/logpm-basicdata/Dockerfile b/blade-service/logpm-basicdata/Dockerfile index 36935915d..fa0291579 100644 --- a/blade-service/logpm-basicdata/Dockerfile +++ b/blade-service/logpm-basicdata/Dockerfile @@ -10,5 +10,5 @@ EXPOSE 8400 ADD ./target/logpm-basicdata.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "-Xms128m","-Xmx512m","app.jar"] CMD ["--spring.profiles.active=test"] diff --git a/blade-service/logpm-distribution/Dockerfile b/blade-service/logpm-distribution/Dockerfile index 09eb15e4d..97f65e6ea 100644 --- a/blade-service/logpm-distribution/Dockerfile +++ b/blade-service/logpm-distribution/Dockerfile @@ -10,5 +10,7 @@ EXPOSE 8600 ADD ./target/logpm-distribution.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENV JAVA_OPTS="-Xms512m -Xmx1024m" + +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "-Xms128m","-Xmx512m","app.jar"] CMD ["--spring.profiles.active=test"] diff --git a/blade-service/logpm-factory/Dockerfile b/blade-service/logpm-factory/Dockerfile index 712953725..19186b76e 100644 --- a/blade-service/logpm-factory/Dockerfile +++ b/blade-service/logpm-factory/Dockerfile @@ -10,5 +10,5 @@ EXPOSE 8200 ADD ./target/logpm-factory.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar","-Xms128m","-Xmx512m", "app.jar"] CMD ["--spring.profiles.active=test"] diff --git a/blade-service/logpm-old-project/Dockerfile b/blade-service/logpm-old-project/Dockerfile index 1c523e654..57cd7ddb4 100644 --- a/blade-service/logpm-old-project/Dockerfile +++ b/blade-service/logpm-old-project/Dockerfile @@ -10,5 +10,5 @@ EXPOSE 8500 ADD ./target/logpm-old-project.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar","-Xms128m","-Xmx512m" "app.jar"] CMD ["--spring.profiles.active=test"] diff --git a/blade-service/logpm-patch/Dockerfile b/blade-service/logpm-patch/Dockerfile index 60fb46ee6..b3bd89d90 100644 --- a/blade-service/logpm-patch/Dockerfile +++ b/blade-service/logpm-patch/Dockerfile @@ -10,5 +10,5 @@ EXPOSE 19000 ADD ./target/logpm-patch.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar","-Xms128m","-Xmx512m" ,"app.jar"] CMD ["--spring.profiles.active=test"] diff --git a/blade-service/logpm-trunkline/Dockerfile b/blade-service/logpm-trunkline/Dockerfile index 6a17c12b8..73546915b 100644 --- a/blade-service/logpm-trunkline/Dockerfile +++ b/blade-service/logpm-trunkline/Dockerfile @@ -10,5 +10,5 @@ EXPOSE 8700 ADD ./target/logpm-trunkline.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "-Xms128m","-Xmx512m","app.jar"] CMD ["--spring.profiles.active=test"] diff --git a/blade-service/logpm-warehouse/Dockerfile b/blade-service/logpm-warehouse/Dockerfile index 06b6781f3..7125738d0 100644 --- a/blade-service/logpm-warehouse/Dockerfile +++ b/blade-service/logpm-warehouse/Dockerfile @@ -10,5 +10,5 @@ EXPOSE 8800 ADD ./target/logpm-warehouse.jar ./app.jar -ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "-Xms128m","-Xmx512m","app.jar"] CMD ["--spring.profiles.active=test"]