Browse Source

update readme contents

master
Richard Shih 6 years ago
parent
commit
3566aded71
7 changed files with 145 additions and 47 deletions
  1. 47
      README.md
  2. 48
      SETUP.md
  3. BIN
      resources/tml-img-overview.png
  4. 39
      wildfly_base/README.md
  5. 38
      wildfly_tml/README.md
  6. 10
      wildfly_tml_khhw/README.md
  7. 10
      wildfly_tml_txgw/README.md

47
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' \
)"
```
### Docker Images
![Overview](https://github.com/shihxuancheng/tml-in-docker/blob/master/resources/tml-img-overview.png)

48
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' \
)"
```

BIN
resources/tml-img-overview.png

Before After
Width: 694  |  Height: 541  |  Size: 38 KiB

39
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 |

38
wildfly_tml/README.md

@ -1,2 +1,36 @@
# Wildfly-tml docker image #
# 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 |

10
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

10
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
Loading…
Cancel
Save