fix: make java service images command-overridable

This commit is contained in:
hy001 2026-04-20 23:22:52 +08:00
parent 2fd0976d0d
commit 9f06c67bf1
8 changed files with 152 additions and 152 deletions

View File

@ -15,7 +15,7 @@ RUN apt-get update \
WORKDIR /application WORKDIR /application
COPY target/rc-auth-*.jar /application/service.jar COPY target/rc-auth-*.jar /application/service.jar
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \ CMD exec java -Djava.security.egd=file:/dev/./urandom \
-Dnacos.remote.client.grpc.timeout=6000 \ -Dnacos.remote.client.grpc.timeout=6000 \
-Dnacos.remote.client.grpc.server.check.timeout=6000 \ -Dnacos.remote.client.grpc.server.check.timeout=6000 \
-Dnacos.remote.client.grpc.health.timeout=6000 \ -Dnacos.remote.client.grpc.health.timeout=6000 \

View File

@ -15,7 +15,7 @@ RUN apt-get update \
WORKDIR /application WORKDIR /application
COPY target/rc-gateway-*.jar /application/service.jar COPY target/rc-gateway-*.jar /application/service.jar
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \ CMD exec java -Djava.security.egd=file:/dev/./urandom \
-Dnacos.remote.client.grpc.timeout=6000 \ -Dnacos.remote.client.grpc.timeout=6000 \
-Dnacos.remote.client.grpc.server.check.timeout=6000 \ -Dnacos.remote.client.grpc.server.check.timeout=6000 \
-Dnacos.remote.client.grpc.health.timeout=6000 \ -Dnacos.remote.client.grpc.health.timeout=6000 \

View File

@ -15,7 +15,7 @@ RUN apt-get update \
WORKDIR /application WORKDIR /application
COPY console-start/target/rc-service-console-*.jar /application/service.jar COPY console-start/target/rc-service-console-*.jar /application/service.jar
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \ CMD exec java -Djava.security.egd=file:/dev/./urandom \
-Dnacos.remote.client.grpc.timeout=6000 \ -Dnacos.remote.client.grpc.timeout=6000 \
-Dnacos.remote.client.grpc.server.check.timeout=6000 \ -Dnacos.remote.client.grpc.server.check.timeout=6000 \
-Dnacos.remote.client.grpc.health.timeout=6000 \ -Dnacos.remote.client.grpc.health.timeout=6000 \

View File

@ -15,7 +15,7 @@ RUN apt-get update \
WORKDIR /application WORKDIR /application
COPY external-start/target/rc-service-external-*.jar /application/service.jar COPY external-start/target/rc-service-external-*.jar /application/service.jar
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \ CMD exec java -Djava.security.egd=file:/dev/./urandom \
-Dnacos.remote.client.grpc.timeout=6000 \ -Dnacos.remote.client.grpc.timeout=6000 \
-Dnacos.remote.client.grpc.server.check.timeout=6000 \ -Dnacos.remote.client.grpc.server.check.timeout=6000 \
-Dnacos.remote.client.grpc.health.timeout=6000 \ -Dnacos.remote.client.grpc.health.timeout=6000 \

View File

@ -15,7 +15,7 @@ RUN apt-get update \
WORKDIR /application WORKDIR /application
COPY live-start/target/rc-service-live-*.jar /application/service.jar COPY live-start/target/rc-service-live-*.jar /application/service.jar
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \ CMD exec java -Djava.security.egd=file:/dev/./urandom \
-Dnacos.remote.client.grpc.timeout=6000 \ -Dnacos.remote.client.grpc.timeout=6000 \
-Dnacos.remote.client.grpc.server.check.timeout=6000 \ -Dnacos.remote.client.grpc.server.check.timeout=6000 \
-Dnacos.remote.client.grpc.health.timeout=6000 \ -Dnacos.remote.client.grpc.health.timeout=6000 \

View File

@ -15,7 +15,7 @@ RUN apt-get update \
WORKDIR /application WORKDIR /application
COPY order-start/target/rc-service-order-*.jar /application/service.jar COPY order-start/target/rc-service-order-*.jar /application/service.jar
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \ CMD exec java -Djava.security.egd=file:/dev/./urandom \
-Dnacos.remote.client.grpc.timeout=6000 \ -Dnacos.remote.client.grpc.timeout=6000 \
-Dnacos.remote.client.grpc.server.check.timeout=6000 \ -Dnacos.remote.client.grpc.server.check.timeout=6000 \
-Dnacos.remote.client.grpc.health.timeout=6000 \ -Dnacos.remote.client.grpc.health.timeout=6000 \

View File

@ -15,7 +15,7 @@ RUN apt-get update \
WORKDIR /application WORKDIR /application
COPY other-start/target/rc-service-other-*.jar /application/service.jar COPY other-start/target/rc-service-other-*.jar /application/service.jar
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \ CMD exec java -Djava.security.egd=file:/dev/./urandom \
-Dnacos.remote.client.grpc.timeout=6000 \ -Dnacos.remote.client.grpc.timeout=6000 \
-Dnacos.remote.client.grpc.server.check.timeout=6000 \ -Dnacos.remote.client.grpc.server.check.timeout=6000 \
-Dnacos.remote.client.grpc.health.timeout=6000 \ -Dnacos.remote.client.grpc.health.timeout=6000 \

View File

@ -15,7 +15,7 @@ RUN apt-get update \
WORKDIR /application WORKDIR /application
COPY wallet-start/target/rc-service-wallet-*.jar /application/service.jar COPY wallet-start/target/rc-service-wallet-*.jar /application/service.jar
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \ CMD exec java -Djava.security.egd=file:/dev/./urandom \
-Dnacos.remote.client.grpc.timeout=6000 \ -Dnacos.remote.client.grpc.timeout=6000 \
-Dnacos.remote.client.grpc.server.check.timeout=6000 \ -Dnacos.remote.client.grpc.server.check.timeout=6000 \
-Dnacos.remote.client.grpc.health.timeout=6000 \ -Dnacos.remote.client.grpc.health.timeout=6000 \