You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Richard Shih 3ed7465c5f 增加docker build-time arguments (environment / profile) 6 years ago
wildfly_base change the way passing runtime parameters into wildfly 6 years ago
wildfly_tml FROM Command接受動態傳入的base image 6 years ago
wildfly_tml_khhw 增加docker build-time arguments (environment / profile) 6 years ago
wildfly_tml_txgw 增加docker build-time arguments (environment / profile) 6 years ago
.DS_Store daily commit 6 years ago
README.md 1. 更新docker & docker-compose安裝方式(RHEL) 6 years ago
buildImage.sh changes for TML UAT Environment 6 years ago
cleanImage.sh changes for TML UAT Environment 6 years ago

README.md

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

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

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