We use Docker for continuous integration and delivery.

Docker Network

  1. Create

    docker network create --gateway 172.22.0.1 --subnet 172.22.0.0/24 servicedev-network
    
  2. Remove

    $ docker network ls
    NETWORK ID     NAME                        DRIVER    SCOPE
    f9a91014be89   bridge                      bridge    local
    bfc1ceb90947   host                        host      local
    d3188678d408   jenkinspipeline_default     bridge    local
    5b49ee81c3d0   kafkadocker_default         bridge    local
    e242bd840023   none                        null      local
    73259c4a5770   relaymysql50local_default   bridge    local
    9b58e15964a7   servicedev-network          bridge    local
    $ docker network rm ${NETWORK ID}
    

Installation

Install the CircleCI command line tool to check configuration validity.

yum -y update
yum install -y yum-utils
yum-config-manager --add-repo <https://download.docker.com/linux/centos/docker-ce.repo>
yum install -y docker-ce docker-ce-cli containerd.io
systemctl start docker

  1. Root 패스워드 설정

    mysql -u root -p
    use mysql;
    update user set password=password('eogksalsrnr1!') where user='root'
    
    

Docker Image 생성 후, Registry에 Push

docker build --no-cache --network=host --tag php54/php-5.4.44:1.4 ./
docker tag php54/php-5.4.44:1.3 registry.shopby.co.kr/php54/php-5.4.44:1.3
docker image push registry.shopby.co.kr/php54/php-5.4.44:1.3

Colima?