From 062aa7b8fdb9ae764f5c7b7c9ec3a9e82d59de0a Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 31 Aug 2018 11:04:40 +0800 Subject: [PATCH] Add extra strup parameters to vm --- wildfly_base/initial/startwf.sh | 3 ++- wildfly_tml_khhw/Dockerfile | 2 +- wildfly_tml_txgw/Dockerfile | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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