Browse Source

拆分設定wildfly module動作降低每次下載image檔案大小

master
Richard Shih 6 years ago
parent
commit
e90fd2472f
8 changed files with 33 additions and 28 deletions
  1. 28
      wildfly_base/modules/make_modules.sh
  2. 3
      wildfly_tml/Dockerfile
  3. 30
      wildfly_tml/modules/make_modules.sh
  4. 0
      wildfly_tml/modules/module_tml.xml
  5. 0
      wildfly_tml/modules/module_tml_bizbean.xml
  6. 0
      wildfly_tml/modules/module_tml_vo.xml
  7. 0
      wildfly_tml/modules/module_wanhai_base.xml
  8. 0
      wildfly_tml/modules/module_wanhai_zk.xml

28
wildfly_base/modules/make_modules.sh

@ -151,34 +151,6 @@ curl -# -o ${WF_MODULE_PATH}/net/sf/jasperreports/fonts/main/jasperreports-fonts
curl -# -o ${WF_MODULE_PATH}/net/sf/jasperreports/fonts/main/itext.jar http://central.maven.org/maven2/com/lowagie/itext/2.1.7/itext-2.1.7.jar
cp ./module_jasperreports_font.xml ${WF_MODULE_PATH}/net/sf/jasperreports/fonts/main/module.xml
#setup module of wanhai base
echo 'Download jars of com.wanhai.base=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/base/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-utility.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-utility/1.0.0/whl-utility-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-security-fake.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-security/1.0.0/whl-security-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-biz.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-biz/1.0.0/whl-biz-1.0.0.jar
cp ./module_wanhai_base.xml ${WF_MODULE_PATH}/com/wanhai/base/main/module.xml
#setup module of wanhai zk base
echo 'Download jars of com.wanhai.zk=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/zk/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/zk/main/whl-zk-template.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/zk/whl-template/1.0.0/whl-template-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/zk/main/whl-zk-base.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/zk/whl-zk-base/1.0.0/whl-zk-base-1.0.0.jar
cp ./module_wanhai_zk.xml ${WF_MODULE_PATH}/com/wanhai/zk/main/module.xml
#setup module of tml vo
echo 'Download jars of com.wanhai.tml.vo=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/tml/vo/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/whl-vo-sec.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-vo-sec/0.1.0/whl-vo-sec-0.1.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/whl-vo-tml.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-vo-tml/0.1.0/whl-vo-tml-0.1.0.jar
cp ./module_tml_vo.xml ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/module.xml
#setup module of tml bizbean
echo 'Download jars of com.wanhai.tml.bizbean=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main/whl-biztml.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-biztml/0.1.0/whl-biztml-0.1.0.jar
cp ./module_tml_bizbean.xml ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main/module.xml

3
wildfly_tml/Dockerfile

@ -5,6 +5,9 @@ FROM $BASE_IMAGE
#prepare tmp dir
COPY --chown=jboss . ${JBOSS_HOME}/config
#customize modules
RUN cd ${JBOSS_HOME}/config/modules && ./make_modules.sh
#customize settings
RUN chmod -R 777 ${JBOSS_HOME}/config && cd ${JBOSS_HOME}/config/initial && ./setup.sh

30
wildfly_tml/modules/make_modules.sh

@ -0,0 +1,30 @@
#variablies
WF_MODULE_PATH=${JBOSS_HOME}'/modules'
#setup module of wanhai base
echo 'Download jars of com.wanhai.base=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/base/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-utility.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-utility/1.0.0/whl-utility-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-security-fake.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-security/1.0.0/whl-security-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/base/main/whl-biz.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/base/whl-biz/1.0.0/whl-biz-1.0.0.jar
cp ./module_wanhai_base.xml ${WF_MODULE_PATH}/com/wanhai/base/main/module.xml
#setup module of wanhai zk base
echo 'Download jars of com.wanhai.zk=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/zk/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/zk/main/whl-zk-template.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/zk/whl-template/1.0.0/whl-template-1.0.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/zk/main/whl-zk-base.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/zk/whl-zk-base/1.0.0/whl-zk-base-1.0.0.jar
cp ./module_wanhai_zk.xml ${WF_MODULE_PATH}/com/wanhai/zk/main/module.xml
#setup module of tml vo
echo 'Download jars of com.wanhai.tml.vo=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/tml/vo/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/whl-vo-sec.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-vo-sec/0.1.0/whl-vo-sec-0.1.0.jar
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/whl-vo-tml.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-vo-tml/0.1.0/whl-vo-tml-0.1.0.jar
cp ./module_tml_vo.xml ${WF_MODULE_PATH}/com/wanhai/tml/vo/main/module.xml
#setup module of tml bizbean
echo 'Download jars of com.wanhai.tml.bizbean=>'
mkdir -p ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main
curl -# -o ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main/whl-biztml.jar http://khhwtml02t.wanhai.com:8181/repository/maven-releases/com/wanhai/tml/whl-biztml/0.1.0/whl-biztml-0.1.0.jar
cp ./module_tml_bizbean.xml ${WF_MODULE_PATH}/com/wanhai/tml/bizbean/main/module.xml

wildfly_base/modules/module_tml.xml → wildfly_tml/modules/module_tml.xml

wildfly_base/modules/module_tml_bizbean.xml → wildfly_tml/modules/module_tml_bizbean.xml

wildfly_base/modules/module_tml_vo.xml → wildfly_tml/modules/module_tml_vo.xml

wildfly_base/modules/module_wanhai_base.xml → wildfly_tml/modules/module_wanhai_base.xml

wildfly_base/modules/module_wanhai_zk.xml → wildfly_tml/modules/module_wanhai_zk.xml

Loading…
Cancel
Save