diff --git a/wildfly_base/initial/startwf.sh b/wildfly_base/initial/startwf.sh index 7cce0b1..2f1d484 100755 --- a/wildfly_base/initial/startwf.sh +++ b/wildfly_base/initial/startwf.sh @@ -1,5 +1,6 @@ #variables IPADDRESS=$(hostname -i) -/opt/jboss/wildfly/bin/standalone.sh -c ${WF_CONFIG} -b ${IPADDRESS} -Djboss.bind.address.management=${IPADDRESS} +EXTRA_JAVA_OPTS=$EXTRA_JAVA_OPTS -Djboss.bind.address.management=${IPADDRESS} +/opt/jboss/wildfly/bin/standalone.sh -c ${WF_CONFIG} -b ${IPADDRESS} ${EXTRA_JAVA_OPTS} diff --git a/wildfly_tml_khhw/Dockerfile b/wildfly_tml_khhw/Dockerfile index 9aeea5b..a655a26 100644 --- a/wildfly_tml_khhw/Dockerfile +++ b/wildfly_tml_khhw/Dockerfile @@ -1,7 +1,7 @@ FROM khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest #set environment -ENV JAVA_OPTS="-Dcom.wanhai.tml.yard.current=KHHW" +ENV EXTRA_JAVA_OPTS="-Dcom.wanhai.tml.yard.current=KHHW" #prepare tmp dir COPY --chown=jboss . ${JBOSS_HOME}/config diff --git a/wildfly_tml_txgw/Dockerfile b/wildfly_tml_txgw/Dockerfile index 2e8e706..9e25859 100644 --- a/wildfly_tml_txgw/Dockerfile +++ b/wildfly_tml_txgw/Dockerfile @@ -1,7 +1,7 @@ FROM khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest #set environment -ENV JAVA_OPTS="-Dcom.wanhai.tml.yard.current=TXGW" +ENV EXTRA_JAVA_OPTS="-Dcom.wanhai.tml.yard.current=TXGW" #prepare tmp dir COPY --chown=jboss . ${JBOSS_HOME}/config