fix docker image get back to roots

This commit is contained in:
anhefti 2021-04-22 17:58:18 +02:00
parent 4c79bbdc3c
commit e4890a0f13

View file

@ -1,22 +1,28 @@
#!/bin/sh #!/bin/sh
if [ "x${JMX_PORT}" = "x" ] ; \ exec java \
then exec java \ -Xms${JAVA_HEAP_MIN} \
-Xms${JAVA_HEAP_MIN} \ -Xmx${JAVA_HEAP_MAX} \
-Xmx${JAVA_HEAP_MAX} \ -jar "seb-server.jar" \
-jar "seb-server.jar" \ --spring.config.location=file:/sebserver/config/spring/,classpath:/config/;
--spring.config.location=file:/sebserver/config/spring/,classpath:/config/; \
else echo "admin ${SEBSERVER_SECRET}" > jmxremote.password && chown spring:spring /sebserver/jmxremote.password && chmod 400 /sebserver/jmxremote.password && exec java \ #if [ "x${JMX_PORT}" = "x" ] ; \
-Xms${JAVA_HEAP_MIN} \ # then exec java \
-Xmx${JAVA_HEAP_MAX} \ # -Xms${JAVA_HEAP_MIN} \
-Dcom.sun.management.jmxremote \ # -Xmx${JAVA_HEAP_MAX} \
-Dcom.sun.management.jmxremote.port=${JMX_PORT} \ # -jar "seb-server.jar" \
-Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT} \ # --spring.config.location=file:/sebserver/config/spring/,classpath:/config/; \
-Djava.rmi.server.hostname=localhost \ # else echo "admin ${SEBSERVER_SECRET}" > jmxremote.password && chown spring:spring /sebserver/jmxremote.password && chmod 400 /sebserver/jmxremote.password && exec java \
-Dcom.sun.management.jmxremote.local.only=false \ # -Xms${JAVA_HEAP_MIN} \
-Dcom.sun.management.jmxremote.ssl=false \ # -Xmx${JAVA_HEAP_MAX} \
-Dcom.sun.management.jmxremote.authenticate=true \ # -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.password.file=/sebserver/jmxremote.password \ # -Dcom.sun.management.jmxremote.port=${JMX_PORT} \
-Dcom.sun.management.jmxremote.access.file=/sebserver/config/jmx/jmxremote.access \ # -Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT} \
-jar "seb-server.jar" \ # -Djava.rmi.server.hostname=localhost \
--spring.config.location=file:/sebserver/config/spring/,classpath:/config/; \ # -Dcom.sun.management.jmxremote.local.only=false \
fi # -Dcom.sun.management.jmxremote.ssl=false \
# -Dcom.sun.management.jmxremote.authenticate=true \
# -Dcom.sun.management.jmxremote.password.file=/sebserver/jmxremote.password \
# -Dcom.sun.management.jmxremote.access.file=/sebserver/config/jmx/jmxremote.access \
# -jar "seb-server.jar" \
# --spring.config.location=file:/sebserver/config/spring/,classpath:/config/; \
#fi