diff --git a/README.md b/README.md index 8e0604e..5890b4c 100644 --- a/README.md +++ b/README.md @@ -1,48 +1,5 @@ # tml-in-docker # Dockerized TML Web System -### 安裝Docker & Docker Compose -一般Linux - - $ wget -qO- https://get.docker.com/ | sh - $ sudo usermod -aG docker $(whoami) - $ sudo systemctl enable docker.service - $ sudo systemctl start docker.service - - $ sudo yum install epel-release - $ sudo yum install -y python-pip - $ sudo pip install docker-compose - -Redhat RHEL 7 - - $ yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo - $ yum makecache fast - $ yum install http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.42-1.gitad8f0f7.el7.noarch.rpm - $ yum install docker-ce - $ yum install docker-compose - - -##### 若docker host在proxy之後 - -請參考 https://docs.docker.com/config/daemon/systemd/#custom-docker-daemon-options - -### 安裝Rancher CLI -```bash -curl -LkSs https://github.com/rancher/cli/releases/download/v0.6.11/rancher-linux-amd64-v0.6.11.tar.gz | tar -xz && mv ./rancher-v0.6.11/rancher /bin/rancher && rm -rf ./rancher-v0.6.11 -``` - - ### 由Private register移除Docker Image - -```bash -registry='localhost:5000' -name='my-image' -curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$( - curl -sSL -I \ - -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \ - "http://${registry}/v2/${name}/manifests/$( - curl -sSL "http://${registry}/v2/${name}/tags/list" | jq -r '.tags[0]' - )" \ - | awk '$1 == "Docker-Content-Digest:" { print $2 }' \ - | tr -d $'\r' \ -)" -``` \ No newline at end of file +### Docker Images +![Overview](https://github.com/shihxuancheng/tml-in-docker/blob/master/resources/tml-img-overview.png) diff --git a/SETUP.md b/SETUP.md new file mode 100644 index 0000000..8e0604e --- /dev/null +++ b/SETUP.md @@ -0,0 +1,48 @@ +# tml-in-docker # +Dockerized TML Web System + +### 安裝Docker & Docker Compose +一般Linux + + $ wget -qO- https://get.docker.com/ | sh + $ sudo usermod -aG docker $(whoami) + $ sudo systemctl enable docker.service + $ sudo systemctl start docker.service + + $ sudo yum install epel-release + $ sudo yum install -y python-pip + $ sudo pip install docker-compose + +Redhat RHEL 7 + + $ yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo + $ yum makecache fast + $ yum install http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.42-1.gitad8f0f7.el7.noarch.rpm + $ yum install docker-ce + $ yum install docker-compose + + +##### 若docker host在proxy之後 + +請參考 https://docs.docker.com/config/daemon/systemd/#custom-docker-daemon-options + +### 安裝Rancher CLI +```bash +curl -LkSs https://github.com/rancher/cli/releases/download/v0.6.11/rancher-linux-amd64-v0.6.11.tar.gz | tar -xz && mv ./rancher-v0.6.11/rancher /bin/rancher && rm -rf ./rancher-v0.6.11 +``` + + ### 由Private register移除Docker Image + +```bash +registry='localhost:5000' +name='my-image' +curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$( + curl -sSL -I \ + -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \ + "http://${registry}/v2/${name}/manifests/$( + curl -sSL "http://${registry}/v2/${name}/tags/list" | jq -r '.tags[0]' + )" \ + | awk '$1 == "Docker-Content-Digest:" { print $2 }' \ + | tr -d $'\r' \ +)" +``` \ No newline at end of file diff --git a/resources/tml-img-overview.png b/resources/tml-img-overview.png new file mode 100644 index 0000000..0bafb11 Binary files /dev/null and b/resources/tml-img-overview.png differ diff --git a/wildfly_base/README.md b/wildfly_base/README.md index e69de29..4c3f34e 100644 --- a/wildfly_base/README.md +++ b/wildfly_base/README.md @@ -0,0 +1,39 @@ +# wildfly-base + +定義Global modules & configurations,所有全域性的設定及改變可在此層進行異動 + +### Base Image +[jboss/wildfly:11.0.0.Final](https://hub.docker.com/r/jboss/wildfly/) + +- CentOS 7 +- Open JDK 1.8 +- Wildfly 11.0.0.Final + +### Configurations + +1. **${JBOSS_HOME} = /opt/jboss/wildfly** +2. 預設 admin account **admin/wanhai_2** +3. 修改 **$WF_CONFIG** 可切換不同的設定檔 + +### Predefined Modules + +Location: **${JBOSS_HOME}/modules/** + +| Name | Version | +| ----------------------------- | --------------------- | +| org.zkoss.zk | 7.0.3 | +| | 8.0.2.2 (**default**) | +| com.google.gson | 2.7 | +| com.google.zxing | 3.2.1 | +| com.oracle.jdbc | 11.1.0.7.0 | +| com.mysql.jdbc | 5.1.38 | +| org.apache.commons.fileupload | 1.2.2 | +| org.apache.commons.logging | 1.1.3 | +| org.apache.commons.net | 3.6 | +| org.apache.commons.digester | 1.6 | +| org.codehaus.groovy | 2.4.7 | +| org.springframework | 4.0.6 | +| net.glxn.qrgen | 2.0 | +| net.sf.jasperreports | 4.6.1 | +| net.sf.jasperreports.fonts | +| io.sentry | 1.7.3 | diff --git a/wildfly_tml/README.md b/wildfly_tml/README.md index 76522f2..1f61ca7 100644 --- a/wildfly_tml/README.md +++ b/wildfly_tml/README.md @@ -1,2 +1,36 @@ -# Wildfly-tml docker image # - \ No newline at end of file +# wildfly-tml # + +定義TML System modules & cnfigurations,所有與TML系統相關設定及改變可在此層進行異動 + +### Base Image + +**wildfly-base:latest** +Location: [khhwtml02t.wanhai.com:8182/jboss/wildfly-base:latest](http://khhwtml02t.wanhai.com:8181/service/rest/repository/browse/tml-release/v2/jboss/wildfly-base/tags/) + + +### Configurations +1. 預先在 **${JBOSS_HOME}'/standalone/deployments/** 建立**WHL_TML.ear** + + WHL_TML.ear + |-META-INF + | |-application.xml + | |-tml-config.xml + | + |-lib + | |-tml-utility.jar + | |-tml-security.jar + | + |-whl-biztml.jar + + +2. 新增**standalone-minimal.xml** (僅載入必要 extensions) + + +### Predefined Modules + +| Name | Version | +| ---------------------- | ------- | +| com.wanhai.base | 1.0.0 | +| com.wanhai.zk | 1.0.0 | +| com.wanhai.tml.bizbean | 0.1.0 | +| com.wanhai.tml.vo | 0.1.0 | \ No newline at end of file diff --git a/wildfly_tml_khhw/README.md b/wildfly_tml_khhw/README.md new file mode 100644 index 0000000..93c5b63 --- /dev/null +++ b/wildfly_tml_khhw/README.md @@ -0,0 +1,10 @@ +# wildfl-tml-khhw # + Images for KHHW + +### Base Image + +**wildfly-tml:latest** +Location: [khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest](http://khhwtml02t.wanhai.com:8181/service/rest/repository/browse/tml-release/v2/jboss/wildfly-tml/tags/) + +### Configurations +### Predefined Modules diff --git a/wildfly_tml_txgw/README.md b/wildfly_tml_txgw/README.md new file mode 100644 index 0000000..f591f86 --- /dev/null +++ b/wildfly_tml_txgw/README.md @@ -0,0 +1,10 @@ +# wildfl-tml-txgw # + Images for TXGW + +### Base Image + +**wildfly-tml:latest** +Location: [khhwtml02t.wanhai.com:8182/jboss/wildfly-tml:latest](http://khhwtml02t.wanhai.com:8181/service/rest/repository/browse/tml-release/v2/jboss/wildfly-tml/tags/) + +### Configurations +### Predefined Modules \ No newline at end of file