From e90fd2472fea73e6d3a6a63ab21ee406cadab557 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 3 Oct 2018 11:02:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E5=88=86=E8=A8=AD=E5=AE=9Awildfly=20m?= =?UTF-8?q?odule=E5=8B=95=E4=BD=9C=E9=99=8D=E4=BD=8E=E6=AF=8F=E6=AC=A1?= =?UTF-8?q?=E4=B8=8B=E8=BC=89image=E6=AA=94=E6=A1=88=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wildfly_base/modules/make_modules.sh | 28 ----------------- wildfly_tml/Dockerfile | 3 ++ wildfly_tml/modules/make_modules.sh | 30 +++++++++++++++++++ .../modules/module_tml.xml | 0 .../modules/module_tml_bizbean.xml | 0 .../modules/module_tml_vo.xml | 0 .../modules/module_wanhai_base.xml | 0 .../modules/module_wanhai_zk.xml | 0 8 files changed, 33 insertions(+), 28 deletions(-) create mode 100644 wildfly_tml/modules/make_modules.sh rename {wildfly_base => wildfly_tml}/modules/module_tml.xml (100%) rename {wildfly_base => wildfly_tml}/modules/module_tml_bizbean.xml (100%) rename {wildfly_base => wildfly_tml}/modules/module_tml_vo.xml (100%) rename {wildfly_base => wildfly_tml}/modules/module_wanhai_base.xml (100%) rename {wildfly_base => wildfly_tml}/modules/module_wanhai_zk.xml (100%) diff --git a/wildfly_base/modules/make_modules.sh b/wildfly_base/modules/make_modules.sh index 9fab92c..67253e2 100755 --- a/wildfly_base/modules/make_modules.sh +++ b/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 - diff --git a/wildfly_tml/Dockerfile b/wildfly_tml/Dockerfile index 8eeadde..bce25c1 100755 --- a/wildfly_tml/Dockerfile +++ b/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 diff --git a/wildfly_tml/modules/make_modules.sh b/wildfly_tml/modules/make_modules.sh new file mode 100644 index 0000000..663b8d4 --- /dev/null +++ b/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 \ No newline at end of file diff --git a/wildfly_base/modules/module_tml.xml b/wildfly_tml/modules/module_tml.xml similarity index 100% rename from wildfly_base/modules/module_tml.xml rename to wildfly_tml/modules/module_tml.xml diff --git a/wildfly_base/modules/module_tml_bizbean.xml b/wildfly_tml/modules/module_tml_bizbean.xml similarity index 100% rename from wildfly_base/modules/module_tml_bizbean.xml rename to wildfly_tml/modules/module_tml_bizbean.xml diff --git a/wildfly_base/modules/module_tml_vo.xml b/wildfly_tml/modules/module_tml_vo.xml similarity index 100% rename from wildfly_base/modules/module_tml_vo.xml rename to wildfly_tml/modules/module_tml_vo.xml diff --git a/wildfly_base/modules/module_wanhai_base.xml b/wildfly_tml/modules/module_wanhai_base.xml similarity index 100% rename from wildfly_base/modules/module_wanhai_base.xml rename to wildfly_tml/modules/module_wanhai_base.xml diff --git a/wildfly_base/modules/module_wanhai_zk.xml b/wildfly_tml/modules/module_wanhai_zk.xml similarity index 100% rename from wildfly_base/modules/module_wanhai_zk.xml rename to wildfly_tml/modules/module_wanhai_zk.xml