fix: make java service images command-overridable
This commit is contained in:
parent
2fd0976d0d
commit
9f06c67bf1
@ -15,22 +15,22 @@ 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 \
|
||||||
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.io=ALL-UNNAMED \
|
--add-opens java.base/java.io=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.math=ALL-UNNAMED \
|
--add-opens java.base/java.math=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.net=ALL-UNNAMED \
|
--add-opens java.base/java.net=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.nio=ALL-UNNAMED \
|
--add-opens java.base/java.nio=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.security=ALL-UNNAMED \
|
--add-opens java.base/java.security=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.text=ALL-UNNAMED \
|
--add-opens java.base/java.text=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.time=ALL-UNNAMED \
|
--add-opens java.base/java.time=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.util=ALL-UNNAMED \
|
--add-opens java.base/java.util=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
||||||
$JVM_OPTION \
|
$JVM_OPTION \
|
||||||
-jar /application/service.jar \
|
-jar /application/service.jar \
|
||||||
--server.port=$SERVER_PORT \
|
--server.port=$SERVER_PORT \
|
||||||
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
||||||
|
|||||||
@ -15,22 +15,22 @@ 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 \
|
||||||
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.io=ALL-UNNAMED \
|
--add-opens java.base/java.io=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.math=ALL-UNNAMED \
|
--add-opens java.base/java.math=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.net=ALL-UNNAMED \
|
--add-opens java.base/java.net=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.nio=ALL-UNNAMED \
|
--add-opens java.base/java.nio=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.security=ALL-UNNAMED \
|
--add-opens java.base/java.security=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.text=ALL-UNNAMED \
|
--add-opens java.base/java.text=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.time=ALL-UNNAMED \
|
--add-opens java.base/java.time=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.util=ALL-UNNAMED \
|
--add-opens java.base/java.util=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
||||||
$JVM_OPTION \
|
$JVM_OPTION \
|
||||||
-jar /application/service.jar \
|
-jar /application/service.jar \
|
||||||
--server.port=$SERVER_PORT \
|
--server.port=$SERVER_PORT \
|
||||||
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
||||||
|
|||||||
@ -15,22 +15,22 @@ 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 \
|
||||||
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.io=ALL-UNNAMED \
|
--add-opens java.base/java.io=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.math=ALL-UNNAMED \
|
--add-opens java.base/java.math=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.net=ALL-UNNAMED \
|
--add-opens java.base/java.net=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.nio=ALL-UNNAMED \
|
--add-opens java.base/java.nio=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.security=ALL-UNNAMED \
|
--add-opens java.base/java.security=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.text=ALL-UNNAMED \
|
--add-opens java.base/java.text=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.time=ALL-UNNAMED \
|
--add-opens java.base/java.time=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.util=ALL-UNNAMED \
|
--add-opens java.base/java.util=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
||||||
$JVM_OPTION \
|
$JVM_OPTION \
|
||||||
-jar /application/service.jar \
|
-jar /application/service.jar \
|
||||||
--server.port=$SERVER_PORT \
|
--server.port=$SERVER_PORT \
|
||||||
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
||||||
|
|||||||
@ -15,22 +15,22 @@ 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 \
|
||||||
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.io=ALL-UNNAMED \
|
--add-opens java.base/java.io=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.math=ALL-UNNAMED \
|
--add-opens java.base/java.math=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.net=ALL-UNNAMED \
|
--add-opens java.base/java.net=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.nio=ALL-UNNAMED \
|
--add-opens java.base/java.nio=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.security=ALL-UNNAMED \
|
--add-opens java.base/java.security=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.text=ALL-UNNAMED \
|
--add-opens java.base/java.text=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.time=ALL-UNNAMED \
|
--add-opens java.base/java.time=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.util=ALL-UNNAMED \
|
--add-opens java.base/java.util=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
||||||
$JVM_OPTION \
|
$JVM_OPTION \
|
||||||
-jar /application/service.jar \
|
-jar /application/service.jar \
|
||||||
--server.port=$SERVER_PORT \
|
--server.port=$SERVER_PORT \
|
||||||
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
||||||
|
|||||||
@ -15,22 +15,22 @@ 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 \
|
||||||
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.io=ALL-UNNAMED \
|
--add-opens java.base/java.io=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.math=ALL-UNNAMED \
|
--add-opens java.base/java.math=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.net=ALL-UNNAMED \
|
--add-opens java.base/java.net=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.nio=ALL-UNNAMED \
|
--add-opens java.base/java.nio=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.security=ALL-UNNAMED \
|
--add-opens java.base/java.security=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.text=ALL-UNNAMED \
|
--add-opens java.base/java.text=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.time=ALL-UNNAMED \
|
--add-opens java.base/java.time=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.util=ALL-UNNAMED \
|
--add-opens java.base/java.util=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
||||||
$JVM_OPTION \
|
$JVM_OPTION \
|
||||||
-jar /application/service.jar \
|
-jar /application/service.jar \
|
||||||
--server.port=$SERVER_PORT \
|
--server.port=$SERVER_PORT \
|
||||||
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
||||||
|
|||||||
@ -15,22 +15,22 @@ 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 \
|
||||||
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.io=ALL-UNNAMED \
|
--add-opens java.base/java.io=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.math=ALL-UNNAMED \
|
--add-opens java.base/java.math=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.net=ALL-UNNAMED \
|
--add-opens java.base/java.net=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.nio=ALL-UNNAMED \
|
--add-opens java.base/java.nio=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.security=ALL-UNNAMED \
|
--add-opens java.base/java.security=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.text=ALL-UNNAMED \
|
--add-opens java.base/java.text=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.time=ALL-UNNAMED \
|
--add-opens java.base/java.time=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.util=ALL-UNNAMED \
|
--add-opens java.base/java.util=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
||||||
$JVM_OPTION \
|
$JVM_OPTION \
|
||||||
-jar /application/service.jar \
|
-jar /application/service.jar \
|
||||||
--server.port=$SERVER_PORT \
|
--server.port=$SERVER_PORT \
|
||||||
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
||||||
|
|||||||
@ -15,22 +15,22 @@ 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 \
|
||||||
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.io=ALL-UNNAMED \
|
--add-opens java.base/java.io=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.math=ALL-UNNAMED \
|
--add-opens java.base/java.math=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.net=ALL-UNNAMED \
|
--add-opens java.base/java.net=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.nio=ALL-UNNAMED \
|
--add-opens java.base/java.nio=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.security=ALL-UNNAMED \
|
--add-opens java.base/java.security=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.text=ALL-UNNAMED \
|
--add-opens java.base/java.text=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.time=ALL-UNNAMED \
|
--add-opens java.base/java.time=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.util=ALL-UNNAMED \
|
--add-opens java.base/java.util=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
||||||
$JVM_OPTION \
|
$JVM_OPTION \
|
||||||
-jar /application/service.jar \
|
-jar /application/service.jar \
|
||||||
--server.port=$SERVER_PORT \
|
--server.port=$SERVER_PORT \
|
||||||
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
||||||
|
|||||||
@ -15,22 +15,22 @@ 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 \
|
||||||
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
--add-opens java.base/java.lang.invoke=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.io=ALL-UNNAMED \
|
--add-opens java.base/java.io=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.math=ALL-UNNAMED \
|
--add-opens java.base/java.math=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.net=ALL-UNNAMED \
|
--add-opens java.base/java.net=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.nio=ALL-UNNAMED \
|
--add-opens java.base/java.nio=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.security=ALL-UNNAMED \
|
--add-opens java.base/java.security=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.text=ALL-UNNAMED \
|
--add-opens java.base/java.text=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.time=ALL-UNNAMED \
|
--add-opens java.base/java.time=ALL-UNNAMED \
|
||||||
--add-opens java.base/java.util=ALL-UNNAMED \
|
--add-opens java.base/java.util=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.access=ALL-UNNAMED \
|
||||||
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED \
|
||||||
$JVM_OPTION \
|
$JVM_OPTION \
|
||||||
-jar /application/service.jar \
|
-jar /application/service.jar \
|
||||||
--server.port=$SERVER_PORT \
|
--server.port=$SERVER_PORT \
|
||||||
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
--spring.profiles.active=$SERVER_PROFILE_ACTIVE
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user