Browse Source

Add extra strup parameters to vm

master
Richard Shih 6 years ago
parent
commit
062aa7b8fd
3 changed files with 4 additions and 3 deletions
  1. 3
      wildfly_base/initial/startwf.sh
  2. 2
      wildfly_tml_khhw/Dockerfile
  3. 2
      wildfly_tml_txgw/Dockerfile

3
wildfly_base/initial/startwf.sh

@ -1,5 +1,6 @@
#variables #variables
IPADDRESS=$(hostname -i) 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}

2
wildfly_tml_khhw/Dockerfile

@ -1,7 +1,7 @@
FROM khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest FROM khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest
#set environment #set environment
ENV JAVA_OPTS="-Dcom.wanhai.tml.yard.current=KHHW"
ENV EXTRA_JAVA_OPTS="-Dcom.wanhai.tml.yard.current=KHHW"
#prepare tmp dir #prepare tmp dir
COPY --chown=jboss . ${JBOSS_HOME}/config COPY --chown=jboss . ${JBOSS_HOME}/config

2
wildfly_tml_txgw/Dockerfile

@ -1,7 +1,7 @@
FROM khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest FROM khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest
#set environment #set environment
ENV JAVA_OPTS="-Dcom.wanhai.tml.yard.current=TXGW"
ENV EXTRA_JAVA_OPTS="-Dcom.wanhai.tml.yard.current=TXGW"
#prepare tmp dir #prepare tmp dir
COPY --chown=jboss . ${JBOSS_HOME}/config COPY --chown=jboss . ${JBOSS_HOME}/config

Loading…
Cancel
Save