docker-compose对Dockerfile自定义1+x商城镜像进行编排服务

Docker搭建分布式商城


# 引言:利用 Dockerfile 进行自定义镜像,并通过 docker-compose 对自定义的镜像进行编排,一键部署。

环境介绍 🌈:

机器名IP地址配置信息项目所用包
master192.168.123.113CentOS7-1806、2核、4GB、40磁盘/root下

master 环境展示(因为我们是通过 Docker 和 Docker-compose 进行商城系统的部署,所以我们使用 一台主机跑 Docker 容器就行了,我们在 /root 环境下准备一个系统镜像、一个有商城相关的包和 Docker 的包镜像):

[root@master ~]# ll
total 13402504
-rw-------. 1 root root       1421 Nov  7 07:38 anaconda-ks.cfg
-rw-r--r--. 1 root root 4470079488 Nov  7 07:50 CentOS-7-x86_64-DVD-1804.iso
-rw-r--r--. 1 root root 9254078464 Nov  7 07:53 chinaskills_cloud_paas.iso


搭建基础环境准备 👨‍💻

master:

# 移走(或删除)yum 源目录中的网络源,以防干扰安装(推荐创建一个文件夹统一放着,这里不增加步骤了,就放在 /mnt 下了,我个人是有备份文件的习惯)。

[root@master ~]# ll /etc/yum.repos.d/
total 32
-rw-r--r--. 1 root root 1664 Apr 28  2018 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Apr 28  2018 CentOS-CR.repo
-rw-r--r--. 1 root root  649 Apr 28  2018 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root  314 Apr 28  2018 CentOS-fasttrack.repo
-rw-r--r--. 1 root root  630 Apr 28  2018 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Apr 28  2018 CentOS-Sources.repo
-rw-r--r--. 1 root root 4768 Apr 28  2018 CentOS-Vault.repo
[root@master ~]# mv /etc/yum.repos.d/* /mnt/

# 关闭 firewalld 防火墙设置开机不启动和设置 selinux 为访问模式。

[root@master ~]# systemctl stop firewalld
[root@master ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@master ~]# setenforce 0
[root@master ~]# getenforce 
Permissive

# 创建 centos、pass 两个目录用来挂载对应的镜像,并查看是否挂载成功。

[root@master ~]# mkdir /opt/{centos,pass}
[root@master ~]# mount -o loop CentOS-7-x86_64-DVD-1804.iso /opt/centos/
mount: /dev/loop0 is write-protected, mounting read-only
[root@master ~]# mount -o loop chinaskills_cloud_paas.iso /opt/pass/
mount: /dev/loop1 is write-protected, mounting read-only
[root@master ~]# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda3      xfs        38G   14G   24G  37% /
devtmpfs       devtmpfs  2.0G     0  2.0G   0% /dev
tmpfs          tmpfs     2.0G     0  2.0G   0% /dev/shm
tmpfs          tmpfs     2.0G   12M  2.0G   1% /run
tmpfs          tmpfs     2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/sda1      xfs       509M  118M  392M  24% /boot
tmpfs          tmpfs     394M     0  394M   0% /run/user/0
/dev/loop0     iso9660   4.2G  4.2G     0 100% /opt/centos
/dev/loop1     iso9660   8.7G  8.7G     0 100% /opt/pass

# 配置本地 yum 源(配置文件中 enabled=1 可写可不写,一般都是默认 enabled=1)。

[root@master ~]# vi /etc/yum.repos.d/local.repo
[CentOS]
name=local
baseurl=file:///opt/centos
enabled=1
gpgcheck=0
[Docker]
name=local
baseurl=file:///opt/pass/kubernetes-repo
enabled=1
gpgcheck=0

# 查看一下仓库是否可用,查看一下仓库是否可用,数字不为 “0” 基本没什么问题。

[root@master ~]# yum clean all && yum repolist
Loaded plugins: fastestmirror
Cleaning repos: CentOS Docker
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
Loaded plugins: fastestmirror
Determining fastest mirrors
CentOS                                                                                                                                                                | 3.6 kB  00:00:00     
Docker                                                                                                                                                                | 3.0 kB  00:00:00     
(1/3): CentOS/group_gz                                                                                                                                                | 166 kB  00:00:00     
(2/3): CentOS/primary_db                                                                                                                                              | 3.1 MB  00:00:00     
(3/3): Docker/primary_db                                                                                                                                              | 161 kB  00:00:00     
repo id                                                                                     repo name                                                                                  status
CentOS                                                                                      local                                                                                      3,971
Docker                                                                                      local                                                                                        168
repolist: 4,139

# **(可选操作)**这一步可以执行也可以不执行,主要是安装一些个人常用的工具而已。

[root@master ~]# yum install -y vim net-tools tree unzip


搭建 VSftpd 服务 ⚡

master:

# 安装 vsftpd 服务,为其他节点提供 yum 源服务。

[root@master ~]# yum install -y vsftpd

# 配置 vsftpd 服务,搭建本地 yum 仓库(因为我们两个源的根目录都是 /opt,所以我们把 /opt目录共享出去,之后我会解释为什么要配置 vsftpd 服务)。

[root@master ~]# vim /etc/vsftpd/vsftpd.conf 
# 找个空白的地方加入以下内容
anon_root=/opt

# 启动服务并设置开机自启。

[root@master ~]# systemctl start vsftpd
[root@master ~]# systemctl enable vsftpd
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.


安装 Docker 服务 🐋

master:

# 安装 docker 服务,安装 docker-compose 服务(因为 docker-compose 源文件是一个可执行文件,所以我们直接将其拷贝至 /usr/local/bin/ 本地脚本目录中,我们使用 ll 命令查看 docker-compose 源文件时发现该文件一具有执行权限了,所以我们就没必要在执行赋予执行权限的命令了,如果没有则执行 chmod +x /usr/local/bin/docker-compose 命令进行权限的赋值)。

[root@master ~]# yum install -y docker-ce docker-ce-cli
[root@master ~]# ll /opt/pass/docker-compose/v1.25.5-docker-compose-Linux-x86_64 
-r-xr-xr-x. 1 root root 17586312 Oct 21  2020 /opt/pass/docker-compose/v1.25.5-docker-compose-Linux-x86_64
[root@master ~]# cp -rvf /opt/pass/docker-compose/v1.25.5-docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
‘/opt/pass/docker-compose/v1.25.5-docker-compose-Linux-x86_64’ -> ‘/usr/local/bin/docker-compose’

# 启动 docker 服务,我就不配置本地私有仓库了,因为我只用一台主机采用 docker 搭建分布式商城,所以就没必要配置本地私有仓库了。

[root@master ~]# systemctl start docker
[root@master ~]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.

# **(可选操作)**查看看 docker 服务信息。

[root@master ~]# docker info
Client:
 Debug Mode: false

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 19.03.13
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 8fba4e9a7d01810a393d5d25a3621dc101981175
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 3.10.0-862.el7.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 3.842GiB
 Name: master
 ID: TXZ4:QUKC:2DFH:C4YW:QOLO:UKHD:3TUR:RZFJ:2NTX:OJZL:F3D7:VHNN
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

# 上传 centos 镜像值本地,用于作为之后编写 Dockerfile 文件的基础镜像,并查看镜像列表

[root@master ~]# docker load -i /opt/pass/images/centos-centos7.5.1804.tar 
4826cdadf1ef: Loading layer [==================================================>]  207.8MB/207.8MB
Loaded image: centos:centos7.5.1804
[root@master ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
centos              centos7.5.1804      cf49811e3cdb        2 years ago         200MB


解析 Jar 包 🗳

# 将 jar 包进行解压缩,看一下配置(因为这会决定我们部署是否成功),这一块不清楚的可以看一下之前三台主机搭建商城集群的文章有个 Jar 包解析(至于为什么是查看 application-dev.yml 这个文件,看之前文章就行了)

  1. 可以看到 mysql 数据库的域名为 mysql.mall, jar 包的连接方式,也是通过 mysql.mall 的域名进行连接的,并且端口号:8066,且数据库: gpmall,账号:root,密码:123456(这里端口号之所以是:8066,是因为这个 jar 包是集群搭建的 jar 包,里面其实有一个搭建读写分离数据库的过程,因为 mycat 的默认端口为 8066,这里没必要启动那么多容器去构建读写分离数据库,我们改一下数据库的默认端口就行了,这样也可以连接上);
  2. 可以看到 redis 的域名是 redis.mall
  3. 可以看到 zookeeper 的域名是 zk1.mallkafka 也需要通过 zk1.mall 访问 zookeeper 连接;
  4. 至于 kafka 猜测是与上一篇文章的应该是一致的,所以我们也设置 kafka1.mall(因为这个 jar 包里面没写 kafka 的配置,但原先那篇文章有,加上第一次部署的时候有明显的的报错显示 kafka1.mall 连接不上之类的,所以初步确认域名为 kafka1.mall);
  5. 至于 nginx 也是统一与之前文章一致,我们设置 nginx.mall(其实你设置别的也行,因为他这个域名主要是写在 nginx 配置文件中的);
[root@master ~]# unzip /opt/pass/ChinaskillMall/shopping-provider-0.0.1-SNAPSHOT.jar -d /mnt/
[root@master ~]# vim /mnt/BOOT-INF/classes/application-dev.yml 
spring:
  datasource:
    url: jdbc:mysql://mysql.mall:8066/gpmall?useUnicode=true&characterEncoding=utf8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=UTC
    username: root
    password: 123456
    driver-class-name: com.mysql.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource
    initialSize: 2
    minIdle: 1
    maxActive: 20
    maxWait: 60000
    timeBetweenEvictionRunsMillis: 300000
    validationQuery: SELECT 1 FROM DUAL
    testWhileIdle: true
    testOnBorrow: false
    testOnReturn: false
    poolPreparedStatements: false
    maxPoolPreparedStatementPerConnectionSize: 20
    filters: stat,config
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
    useGlobalDataSourceStat: true
  redisson:
      address: redis.mall:6379
      timeout: 3000
      database: 0
      pool:
        max-active: 20
        max-idle: 10
        max-wait: 3000
        min-idle: 4
dubbo:
  application:
    name: user-service
    owner: Mic
  protocol:
    name: dubbo
    port: 20881
  registry:
    address: zookeeper://zk1.mall:2181,zookeeper://zk2.mall:2181,zookeeper://zk3.mall:2181
    check: true
    group: dubbo-dev
    simplified: true
  metadata-report:
    address: zookeeper://zk1.mall:2181,zookeeper://zk2.mall:2181,zookeeper://zk3.mall:2181
    retry-times: 30
    cycle-report: false
    group: dubbo-dev
  scan:
    base-packages: com.gpmall.shopping.services


编写 Dockerfile 文件 🗳

master:

# 创建相关服务的文件夹(MySQL、Zookeeper、Kafka、Redis、Nginx)

[root@master ~]# mkdir -p  dockerfile/{mysql,zookeeper,kafka,redis,nginx}
[root@master ~]# cd dockerfile/
[root@master dockerfile]# tree 
.
├── kafka
├── mysql
├── nginx
├── redis
└── zookeeper

5 directories, 0 files


编写 MySQL 服务的 Dockerfile 文件,并构建镜像

# 切换至 mysql 目录(所需文件准备):

  • 将所需 sql 文件拷贝至当前目录;
  • 编写数据库配置文件 my.cnf(商城系统中导入的 gpmall.sql 文件中存在中文字符,所以配置字符集还是保险一些的,在通过对 jar 包的分析中知道,我们得更改数据库的默认端口为 8066);
  • 配置 ftp.repo 源(这就是为什么我要在本地主机配置一个 vsftp 服务,这样我们就不需要拷贝很多安装文件至容器中了,这样可以减少容器的大小);
[root@master dockerfile]# cd mysql/
[root@master mysql]# cp -rvf /opt/pass/ChinaskillMall/gpmall.sql .
‘/opt/pass/ChinaskillMall/gpmall.sql’ -> ‘./gpmall.sql’
[root@master mysql]# vim my.cnf
[mysql]
default_character_set = utf8

[mysql.server]
default_character_set = utf8

[client]
default_character_set = utf8

[mysqld]
port = 8066
[root@master mysql]# vim ftp.repo
[CentOS]
name=local
baseurl=ftp://192.168.123.113/centos
enabled=1
gpgcheck=0
[Gpmall]
name=local
baseurl=ftp://192.168.123.113/pass/ChinaskillMall/gpmall-repo/
enabled=1
gpgcheck=0

# 编写 Dockerfile 文件。

问题:看完配置文件内容,很多人可能会疑问为什么最后一行的启动 mysql 为什么不使用 /etc/init.d/mysql start 命令运行,而是使用 /usr/bin/mysqld_safe 命令来运行,虽然他们都可以启动数据库,但他们区别还是蛮多的,这里我只介绍为什么必须使用 /usr/bin/mysqld_safe 命令运行;

回答:docker 容器默认会把容器内部第一个进程,也就是 pid=1 的程序作为 docker 容器是否正在运行的依据,如果 docker 容器中 pid = 1 的进程挂了,那么 docker 容器便会直接退出,也就是说 docker 容器中必须有一个前台进程,否则认为容器已经挂掉,简单来说必须有一个前台进行一直运行,所有就得需要一个能一直在前台运行的命令来启动数据库(可以在本地安装个数据库试着运行一下,/etc/init.d/mysql start 和 /usr/bin/mysqld_safe 命令的区别,基本上已运行就能感受到了);

[root@master mysql]# vim Dockerfile 
# FROM 指定源镜像
FROM centos:centos7.5.1804

# MAINTAINER 作者名称
MAINTAINER JR

# RUN 运行命令参数(将 yum 源中外网源移走,也可以删除,看个人习惯)
RUN mv /etc/yum.repos.d/* /media/

# COPY 拷贝参数(将 ftp.repo 源拷贝至容器中的 /etc/yum.repos.d/ 目录下)
COPY ftp.repo /etc/yum.repos.d/ftp.repo

# RUN 运行命令参数(安装 mariadb、mariadb-server 服务)
RUN yum install -y mariadb mariadb-server

# COPY 拷贝参数(将数据库 gpmall.sql 文件拷贝至容器 /root 目录下)
COPY gpmall.sql /root/

# COPY 拷贝参数(将数据库配置拷贝至数据库配置文件目录下,并覆盖原先的 my.cnf 文件)
COPY my.cnf /etc/my.cnf

# RUN 运行命令参数(启动数据库,设置数据库密码,导入数据,设置数据库访问权限)
RUN /etc/init.d/mysql start \
    && mysqladmin -uroot password 123456 \
    && mysql -uroot -p123456 -e "create database gpmall;" \
    && mysql -uroot -p123456 -e "use gpmall;source /root/gpmall.sql;" \
    && mysql -uroot -p123456 -e "grant all privileges on *.* to root@'%' identified by '123456';"

# 暴露端口参数(将数据库端口8066暴露出去)
EXPOSE 8066

# 运行程序参数(在启动容器是运行指定程序:/usr/bin/mysqld_safe 启动数据库)
ENTRYPOINT ["/usr/bin/mysqld_safe"]

# **(可选操作)**显示 mysql 目录下的文件。

[root@master mysql]# tree 
.
├── Dockerfile
├── ftp.repo
├── gpmall.sql
└── my.cnf

0 directories, 4 files

# 通过 Dockerfile 构建镜像(docker build -t 自定义镜像名称 : 自定义镜像版本 . )最后显示 Successfully 就代表成功,否则就是出问题了。

[root@master mysql]# docker build -t gpmall-mysql:v1.0 .
Sending build context to Docker daemon  65.02kB
Step 1/10 : FROM centos:centos7.5.1804
 ---> cf49811e3cdb
Step 2/10 : MAINTAINER JR
 ---> Running in 6b2b4b3c4867
Removing intermediate container 6b2b4b3c4867
 ---> d8d626118d50
Step 3/10 : RUN mv /etc/yum.repos.d/* /media/
 ---> Running in 021adbd3a20c
Removing intermediate container 021adbd3a20c
 ---> d9b0c52c963e
Step 4/10 : COPY ftp.repo /etc/yum.repos.d/ftp.repo
 ---> b2e452f9c127
Step 5/10 : RUN yum install -y mariadb mariadb-server
 ---> Running in d5b918c1e203
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
Package mariadb is obsoleted by MariaDB-client, trying to install MariaDB-client-10.3.18-1.el7.centos.x86_64 instead
Package mariadb-server is obsoleted by MariaDB-server, trying to install MariaDB-server-10.3.18-1.el7.centos.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-client.x86_64 0:10.3.18-1.el7.centos will be installed
--> Processing Dependency: perl(Sys::Hostname) for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: perl(IPC::Open3) for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: perl(File::Temp) for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: perl(Fcntl) for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: perl(Exporter) for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: MariaDB-common for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: /usr/bin/perl for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: libaio.so.1()(64bit) for package: MariaDB-client-10.3.18-1.el7.centos.x86_64
---> Package MariaDB-server.x86_64 0:10.3.18-1.el7.centos will be installed
--> Processing Dependency: rsync for package: MariaDB-server-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: perl(File::Path) for package: MariaDB-server-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: perl(Data::Dumper) for package: MariaDB-server-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: perl(DBI) for package: MariaDB-server-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: lsof for package: MariaDB-server-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: iproute for package: MariaDB-server-10.3.18-1.el7.centos.x86_64
--> Processing Dependency: galera for package: MariaDB-server-10.3.18-1.el7.centos.x86_64
--> Running transaction check
---> Package MariaDB-common.x86_64 0:10.3.18-1.el7.centos will be installed
--> Processing Dependency: MariaDB-compat for package: MariaDB-common-10.3.18-1.el7.centos.x86_64
---> Package galera.x86_64 0:25.3.27-1.rhel7.el7.centos will be installed
--> Processing Dependency: openssl for package: galera-25.3.27-1.rhel7.el7.centos.x86_64
--> Processing Dependency: libboost_program_options.so.1.53.0()(64bit) for package: galera-25.3.27-1.rhel7.el7.centos.x86_64
---> Package iproute.x86_64 0:4.11.0-14.el7 will be installed
--> Processing Dependency: libmnl.so.0(LIBMNL_1.0)(64bit) for package: iproute-4.11.0-14.el7.x86_64
--> Processing Dependency: libxtables.so.10()(64bit) for package: iproute-4.11.0-14.el7.x86_64
--> Processing Dependency: libmnl.so.0()(64bit) for package: iproute-4.11.0-14.el7.x86_64
---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed
---> Package lsof.x86_64 0:4.87-6.el7 will be installed
---> Package perl.x86_64 4:5.16.3-292.el7 will be installed
--> Processing Dependency: perl-libs = 4:5.16.3-292.el7 for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(File::Spec::Unix) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(File::Spec::Functions) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(File::Spec) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Cwd) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-292.el7.x86_64
---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Getopt-Long.noarch 0:2.40-3.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-3.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-3.el7.noarch
---> Package rsync.x86_64 0:3.1.2-4.el7 will be installed
--> Running transaction check
---> Package MariaDB-compat.x86_64 0:10.3.18-1.el7.centos will be installed
---> Package boost-program-options.x86_64 0:1.53.0-27.el7 will be installed
---> Package iptables.x86_64 0:1.4.21-24.el7 will be installed
--> Processing Dependency: libnfnetlink.so.0()(64bit) for package: iptables-1.4.21-24.el7.x86_64
--> Processing Dependency: libnetfilter_conntrack.so.3()(64bit) for package: iptables-1.4.21-24.el7.x86_64
---> Package libmnl.x86_64 0:1.0.3-7.el7 will be installed
---> Package openssl.x86_64 1:1.0.2k-19.el7 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-19.el7 for package: 1:openssl-1.0.2k-19.el7.x86_64
--> Processing Dependency: make for package: 1:openssl-1.0.2k-19.el7.x86_64
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed
---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-libs.x86_64 4:5.16.3-292.el7 will be installed
---> Package perl-macros.x86_64 4:5.16.3-292.el7 will be installed
---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
--> Running transaction check
---> Package libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3 will be installed
---> Package libnfnetlink.x86_64 0:1.0.1-4.el7 will be installed
---> Package make.x86_64 1:3.82-23.el7 will be installed
---> Package openssl-libs.x86_64 1:1.0.2k-12.el7 will be updated
---> Package openssl-libs.x86_64 1:1.0.2k-19.el7 will be an update
---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-292.el7 will be installed
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
--> Processing Dependency: groff-base for package: perl-Pod-Perldoc-3.20-4.el7.noarch
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
--> Running transaction check
---> Package groff-base.x86_64 0:1.22.2-8.el7 will be installed
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                   Arch     Version                      Repository
                                                                           Size
================================================================================
Installing:
 MariaDB-client            x86_64   10.3.18-1.el7.centos         Gpmall    11 M
 MariaDB-server            x86_64   10.3.18-1.el7.centos         Gpmall    24 M
Installing for dependencies:
 MariaDB-common            x86_64   10.3.18-1.el7.centos         Gpmall    81 k
 MariaDB-compat            x86_64   10.3.18-1.el7.centos         Gpmall   2.8 M
 boost-program-options     x86_64   1.53.0-27.el7                CentOS   156 k
 galera                    x86_64   25.3.27-1.rhel7.el7.centos   Gpmall   8.0 M
 groff-base                x86_64   1.22.2-8.el7                 CentOS   942 k
 iproute                   x86_64   4.11.0-14.el7                CentOS   763 k
 iptables                  x86_64   1.4.21-24.el7                CentOS   431 k
 libaio                    x86_64   0.3.109-13.el7               CentOS    24 k
 libmnl                    x86_64   1.0.3-7.el7                  CentOS    23 k
 libnetfilter_conntrack    x86_64   1.0.6-1.el7_3                CentOS    55 k
 libnfnetlink              x86_64   1.0.1-4.el7                  CentOS    26 k
 lsof                      x86_64   4.87-6.el7                   Gpmall   331 k
 make                      x86_64   1:3.82-23.el7                CentOS   420 k
 openssl                   x86_64   1:1.0.2k-19.el7              Gpmall   493 k
 perl                      x86_64   4:5.16.3-292.el7             CentOS   8.0 M
 perl-Carp                 noarch   1.26-244.el7                 CentOS    19 k
 perl-Compress-Raw-Bzip2   x86_64   2.061-3.el7                  CentOS    32 k
 perl-Compress-Raw-Zlib    x86_64   1:2.061-4.el7                CentOS    57 k
 perl-DBI                  x86_64   1.627-4.el7                  CentOS   802 k
 perl-Data-Dumper          x86_64   2.145-3.el7                  CentOS    47 k
 perl-Encode               x86_64   2.51-7.el7                   CentOS   1.5 M
 perl-Exporter             noarch   5.68-3.el7                   CentOS    28 k
 perl-File-Path            noarch   2.09-2.el7                   CentOS    26 k
 perl-File-Temp            noarch   0.23.01-3.el7                CentOS    56 k
 perl-Filter               x86_64   1.49-3.el7                   CentOS    76 k
 perl-Getopt-Long          noarch   2.40-3.el7                   CentOS    56 k
 perl-HTTP-Tiny            noarch   0.033-3.el7                  CentOS    38 k
 perl-IO-Compress          noarch   2.061-2.el7                  CentOS   260 k
 perl-Net-Daemon           noarch   0.48-5.el7                   CentOS    51 k
 perl-PathTools            x86_64   3.40-5.el7                   CentOS    82 k
 perl-PlRPC                noarch   0.2020-14.el7                CentOS    36 k
 perl-Pod-Escapes          noarch   1:1.04-292.el7               CentOS    51 k
 perl-Pod-Perldoc          noarch   3.20-4.el7                   CentOS    87 k
 perl-Pod-Simple           noarch   1:3.28-4.el7                 CentOS   216 k
 perl-Pod-Usage            noarch   1.63-3.el7                   CentOS    27 k
 perl-Scalar-List-Utils    x86_64   1.27-248.el7                 CentOS    36 k
 perl-Socket               x86_64   2.010-4.el7                  CentOS    49 k
 perl-Storable             x86_64   2.45-3.el7                   CentOS    77 k
 perl-Text-ParseWords      noarch   3.29-4.el7                   CentOS    14 k
 perl-Time-HiRes           x86_64   4:1.9725-3.el7               CentOS    45 k
 perl-Time-Local           noarch   1.2300-2.el7                 CentOS    24 k
 perl-constant             noarch   1.27-2.el7                   CentOS    19 k
 perl-libs                 x86_64   4:5.16.3-292.el7             CentOS   688 k
 perl-macros               x86_64   4:5.16.3-292.el7             CentOS    43 k
 perl-parent               noarch   1:0.225-244.el7              CentOS    12 k
 perl-podlators            noarch   2.5.1-3.el7                  CentOS   112 k
 perl-threads              x86_64   1.87-4.el7                   CentOS    49 k
 perl-threads-shared       x86_64   1.43-6.el7                   CentOS    39 k
 rsync                     x86_64   3.1.2-4.el7                  CentOS   403 k
Updating for dependencies:
 openssl-libs              x86_64   1:1.0.2k-19.el7              Gpmall   1.2 M

Transaction Summary
================================================================================
Install  2 Packages (+49 Dependent packages)
Upgrade             (  1 Dependent package)

Total download size: 64 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
--------------------------------------------------------------------------------
Total                                               55 MB/s |  64 MB  00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 1:openssl-libs-1.0.2k-19.el7.x86_64                         1/53 
  Installing : MariaDB-compat-10.3.18-1.el7.centos.x86_64                  2/53 
  Installing : MariaDB-common-10.3.18-1.el7.centos.x86_64                  3/53 
  Installing : libnfnetlink-1.0.1-4.el7.x86_64                             4/53 
  Installing : libaio-0.3.109-13.el7.x86_64                                5/53 
  Installing : libmnl-1.0.3-7.el7.x86_64                                   6/53 
  Installing : libnetfilter_conntrack-1.0.6-1.el7_3.x86_64                 7/53 
  Installing : iptables-1.4.21-24.el7.x86_64                               8/53 
  Installing : iproute-4.11.0-14.el7.x86_64                                9/53 
  Installing : rsync-3.1.2-4.el7.x86_64                                   10/53 
  Installing : 1:make-3.82-23.el7.x86_64                                  11/53 
  Installing : 1:openssl-1.0.2k-19.el7.x86_64                             12/53 
  Installing : boost-program-options-1.53.0-27.el7.x86_64                 13/53 
  Installing : galera-25.3.27-1.rhel7.el7.centos.x86_64                   14/53 
  Installing : groff-base-1.22.2-8.el7.x86_64                             15/53 
  Installing : 1:perl-parent-0.225-244.el7.noarch                         16/53 
  Installing : perl-HTTP-Tiny-0.033-3.el7.noarch                          17/53 
  Installing : perl-podlators-2.5.1-3.el7.noarch                          18/53 
  Installing : perl-Pod-Perldoc-3.20-4.el7.noarch                         19/53 
  Installing : 1:perl-Pod-Escapes-1.04-292.el7.noarch                     20/53 
  Installing : perl-Text-ParseWords-3.29-4.el7.noarch                     21/53 
  Installing : perl-Encode-2.51-7.el7.x86_64                              22/53 
  Installing : perl-Pod-Usage-1.63-3.el7.noarch                           23/53 
  Installing : 4:perl-macros-5.16.3-292.el7.x86_64                        24/53 
  Installing : 4:perl-libs-5.16.3-292.el7.x86_64                          25/53 
  Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                      26/53 
  Installing : perl-Exporter-5.68-3.el7.noarch                            27/53 
  Installing : perl-constant-1.27-2.el7.noarch                            28/53 
  Installing : perl-Time-Local-1.2300-2.el7.noarch                        29/53 
  Installing : perl-Socket-2.010-4.el7.x86_64                             30/53 
  Installing : perl-Carp-1.26-244.el7.noarch                              31/53 
  Installing : perl-Storable-2.45-3.el7.x86_64                            32/53 
  Installing : perl-PathTools-3.40-5.el7.x86_64                           33/53 
  Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 34/53 
  Installing : perl-File-Temp-0.23.01-3.el7.noarch                        35/53 
  Installing : perl-File-Path-2.09-2.el7.noarch                           36/53 
  Installing : perl-threads-shared-1.43-6.el7.x86_64                      37/53 
  Installing : perl-threads-1.87-4.el7.x86_64                             38/53 
  Installing : perl-Filter-1.49-3.el7.x86_64                              39/53 
  Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch                        40/53 
  Installing : perl-Getopt-Long-2.40-3.el7.noarch                         41/53 
  Installing : 4:perl-5.16.3-292.el7.x86_64                               42/53 
  Installing : perl-Data-Dumper-2.145-3.el7.x86_64                        43/53 
  Installing : MariaDB-client-10.3.18-1.el7.centos.x86_64                 44/53 
  Installing : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                 45/53 
  Installing : perl-Net-Daemon-0.48-5.el7.noarch                          46/53 
  Installing : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                47/53 
  Installing : perl-IO-Compress-2.061-2.el7.noarch                        48/53 
  Installing : perl-PlRPC-0.2020-14.el7.noarch                            49/53 
  Installing : perl-DBI-1.627-4.el7.x86_64                                50/53 
  Installing : lsof-4.87-6.el7.x86_64                                     51/53 
  Installing : MariaDB-server-10.3.18-1.el7.centos.x86_64                 52/53 


PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h d5b918c1e203 password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

  Cleanup    : 1:openssl-libs-1.0.2k-12.el7.x86_64                        53/53 
  Verifying  : perl-IO-Compress-2.061-2.el7.noarch                         1/53 
  Verifying  : perl-HTTP-Tiny-0.033-3.el7.noarch                           2/53 
  Verifying  : MariaDB-common-10.3.18-1.el7.centos.x86_64                  3/53 
  Verifying  : libmnl-1.0.3-7.el7.x86_64                                   4/53 
  Verifying  : perl-threads-shared-1.43-6.el7.x86_64                       5/53 
  Verifying  : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                       6/53 
  Verifying  : lsof-4.87-6.el7.x86_64                                      7/53 
  Verifying  : perl-Exporter-5.68-3.el7.noarch                             8/53 
  Verifying  : perl-constant-1.27-2.el7.noarch                             9/53 
  Verifying  : perl-PathTools-3.40-5.el7.x86_64                           10/53 
  Verifying  : libnetfilter_conntrack-1.0.6-1.el7_3.x86_64                11/53 
  Verifying  : 4:perl-macros-5.16.3-292.el7.x86_64                        12/53 
  Verifying  : iproute-4.11.0-14.el7.x86_64                               13/53 
  Verifying  : MariaDB-client-10.3.18-1.el7.centos.x86_64                 14/53 
  Verifying  : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                 15/53 
  Verifying  : 1:perl-parent-0.225-244.el7.noarch                         16/53 
  Verifying  : perl-Net-Daemon-0.48-5.el7.noarch                          17/53 
  Verifying  : 4:perl-5.16.3-292.el7.x86_64                               18/53 
  Verifying  : groff-base-1.22.2-8.el7.x86_64                             19/53 
  Verifying  : perl-File-Temp-0.23.01-3.el7.noarch                        20/53 
  Verifying  : 1:perl-Pod-Simple-3.28-4.el7.noarch                        21/53 
  Verifying  : perl-Getopt-Long-2.40-3.el7.noarch                         22/53 
  Verifying  : perl-Time-Local-1.2300-2.el7.noarch                        23/53 
  Verifying  : 4:perl-libs-5.16.3-292.el7.x86_64                          24/53 
  Verifying  : boost-program-options-1.53.0-27.el7.x86_64                 25/53 
  Verifying  : perl-DBI-1.627-4.el7.x86_64                                26/53 
  Verifying  : libaio-0.3.109-13.el7.x86_64                               27/53 
  Verifying  : MariaDB-compat-10.3.18-1.el7.centos.x86_64                 28/53 
  Verifying  : perl-Socket-2.010-4.el7.x86_64                             29/53 
  Verifying  : perl-Carp-1.26-244.el7.noarch                              30/53 
  Verifying  : MariaDB-server-10.3.18-1.el7.centos.x86_64                 31/53 
  Verifying  : perl-Data-Dumper-2.145-3.el7.x86_64                        32/53 
  Verifying  : galera-25.3.27-1.rhel7.el7.centos.x86_64                   33/53 
  Verifying  : 1:openssl-1.0.2k-19.el7.x86_64                             34/53 
  Verifying  : perl-Storable-2.45-3.el7.x86_64                            35/53 
  Verifying  : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 36/53 
  Verifying  : 1:make-3.82-23.el7.x86_64                                  37/53 
  Verifying  : 1:perl-Pod-Escapes-1.04-292.el7.noarch                     38/53 
  Verifying  : rsync-3.1.2-4.el7.x86_64                                   39/53 
  Verifying  : 1:openssl-libs-1.0.2k-19.el7.x86_64                        40/53 
  Verifying  : perl-Pod-Usage-1.63-3.el7.noarch                           41/53 
  Verifying  : perl-PlRPC-0.2020-14.el7.noarch                            42/53 
  Verifying  : perl-Encode-2.51-7.el7.x86_64                              43/53 
  Verifying  : libnfnetlink-1.0.1-4.el7.x86_64                            44/53 
  Verifying  : perl-Pod-Perldoc-3.20-4.el7.noarch                         45/53 
  Verifying  : perl-podlators-2.5.1-3.el7.noarch                          46/53 
  Verifying  : perl-File-Path-2.09-2.el7.noarch                           47/53 
  Verifying  : perl-threads-1.87-4.el7.x86_64                             48/53 
  Verifying  : perl-Filter-1.49-3.el7.x86_64                              49/53 
  Verifying  : iptables-1.4.21-24.el7.x86_64                              50/53 
  Verifying  : perl-Text-ParseWords-3.29-4.el7.noarch                     51/53 
  Verifying  : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                52/53 
  Verifying  : 1:openssl-libs-1.0.2k-12.el7.x86_64                        53/53 

Installed:
  MariaDB-client.x86_64 0:10.3.18-1.el7.centos                                  
  MariaDB-server.x86_64 0:10.3.18-1.el7.centos                                  

Dependency Installed:
  MariaDB-common.x86_64 0:10.3.18-1.el7.centos                                  
  MariaDB-compat.x86_64 0:10.3.18-1.el7.centos                                  
  boost-program-options.x86_64 0:1.53.0-27.el7                                  
  galera.x86_64 0:25.3.27-1.rhel7.el7.centos                                    
  groff-base.x86_64 0:1.22.2-8.el7                                              
  iproute.x86_64 0:4.11.0-14.el7                                                
  iptables.x86_64 0:1.4.21-24.el7                                               
  libaio.x86_64 0:0.3.109-13.el7                                                
  libmnl.x86_64 0:1.0.3-7.el7                                                   
  libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3                                 
  libnfnetlink.x86_64 0:1.0.1-4.el7                                             
  lsof.x86_64 0:4.87-6.el7                                                      
  make.x86_64 1:3.82-23.el7                                                     
  openssl.x86_64 1:1.0.2k-19.el7                                                
  perl.x86_64 4:5.16.3-292.el7                                                  
  perl-Carp.noarch 0:1.26-244.el7                                               
  perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7                                  
  perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7                                   
  perl-DBI.x86_64 0:1.627-4.el7                                                 
  perl-Data-Dumper.x86_64 0:2.145-3.el7                                         
  perl-Encode.x86_64 0:2.51-7.el7                                               
  perl-Exporter.noarch 0:5.68-3.el7                                             
  perl-File-Path.noarch 0:2.09-2.el7                                            
  perl-File-Temp.noarch 0:0.23.01-3.el7                                         
  perl-Filter.x86_64 0:1.49-3.el7                                               
  perl-Getopt-Long.noarch 0:2.40-3.el7                                          
  perl-HTTP-Tiny.noarch 0:0.033-3.el7                                           
  perl-IO-Compress.noarch 0:2.061-2.el7                                         
  perl-Net-Daemon.noarch 0:0.48-5.el7                                           
  perl-PathTools.x86_64 0:3.40-5.el7                                            
  perl-PlRPC.noarch 0:0.2020-14.el7                                             
  perl-Pod-Escapes.noarch 1:1.04-292.el7                                        
  perl-Pod-Perldoc.noarch 0:3.20-4.el7                                          
  perl-Pod-Simple.noarch 1:3.28-4.el7                                           
  perl-Pod-Usage.noarch 0:1.63-3.el7                                            
  perl-Scalar-List-Utils.x86_64 0:1.27-248.el7                                  
  perl-Socket.x86_64 0:2.010-4.el7                                              
  perl-Storable.x86_64 0:2.45-3.el7                                             
  perl-Text-ParseWords.noarch 0:3.29-4.el7                                      
  perl-Time-HiRes.x86_64 4:1.9725-3.el7                                         
  perl-Time-Local.noarch 0:1.2300-2.el7                                         
  perl-constant.noarch 0:1.27-2.el7                                             
  perl-libs.x86_64 4:5.16.3-292.el7                                             
  perl-macros.x86_64 4:5.16.3-292.el7                                           
  perl-parent.noarch 1:0.225-244.el7                                            
  perl-podlators.noarch 0:2.5.1-3.el7                                           
  perl-threads.x86_64 0:1.87-4.el7                                              
  perl-threads-shared.x86_64 0:1.43-6.el7                                       
  rsync.x86_64 0:3.1.2-4.el7                                                    

Dependency Updated:
  openssl-libs.x86_64 1:1.0.2k-19.el7                                           

Complete!
Removing intermediate container d5b918c1e203
 ---> 1587dd694136
Step 6/10 : COPY gpmall.sql /root/
 ---> 4ab652aa272d
Step 7/10 : COPY my.cnf /etc/my.cnf
 ---> 84fb17213748
Step 8/10 : RUN /etc/init.d/mysql start     && mysqladmin -uroot password 123456     && mysql -uroot -p123456 -e "create database gpmall;"     && mysql -uroot -p123456 -e "use gpmall;source /root/gpmall.sql;"     && mysql -uroot -p123456 -e "grant all privileges on *.* to root@'%' identified by '123456';"
 ---> Running in a2c190b20352
Starting MariaDB.211107 15:56:58 mysqld_safe Logging to '/var/lib/mysql/a2c190b20352.err'.
211107 15:56:58 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
 SUCCESS! 
Removing intermediate container a2c190b20352
 ---> 1ea94c2eb484
Step 9/10 : EXPOSE 3306
 ---> Running in 6e51b2dfc0c4
Removing intermediate container 6e51b2dfc0c4
 ---> 36dbd612b99f
Step 10/10 : ENTRYPOINT ["/usr/bin/mysqld_safe"]
 ---> Running in 557121b3bc3d
Removing intermediate container 557121b3bc3d
 ---> 2c1a61931c2c
Successfully built 2c1a61931c2c
Successfully tagged gpmall-mysql:v1.0

# 查看镜像列表

[root@master mysql]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
gpmall-mysql        v1.0                ab8fd1b59b4c        39 hours ago        837MB
centos              centos7.5.1804      cf49811e3cdb        2 years ago         200MB


编写 Redis 服务的 Dockerfile 文件,并构建镜像

# 切换至 redis 目录(所需文件准备):

  • 拷贝 ftp.repo 源至 Redis 目录下;
  • 切换目录至 redis 目录
[root@master mysql]# cp -rvf ftp.repo ../redis/
‘ftp.repo’ ->../redis/ftp.repo’
[root@master mysql]# cd ../redis/

# 编写 Dockerfile 文件。

问题:有的人可以能疑惑为什么这次我不提前编写配置文件,然后在拷贝进行覆盖;

回答:因为我没有 redis 的源配置文件,里面有很多参数是默认开启的,我不可能一个一个的写,太多了而且 redis 只用改几个地方,用命令改就行了,改起来也方便,当然你要是有 redis 的源配置文件,也可以改好然后在拷贝覆盖到容器里面,都差不多;

[root@master redis]# vim Dockerfile 
# FROM 指定源镜像
FROM centos:centos7.5.1804

# MAINTAINER 作者名称
MAINTAINER JR

# RUN 运行命令参数(将 yum 源中外网源移走,也可以删除,看个人习惯)
RUN mv /etc/yum.repos.d/* /media/

# COPY 拷贝参数(将 ftp.repo 源拷贝至容器中的 /etc/yum.repos.d/ 目录下)
COPY ftp.repo /etc/yum.repos.d/ftp.repo

# RUN 运行命令参数(安装 redis 服务)
RUN yum install -y redis

# RUN 运行命令参数(使用 sed 命令修改 redis 配置文件,将本地访问,修改为允许远程访问)
RUN sed -i 's/bind 127.0.0.1/bind 0.0.0.0/g' /etc/redis.conf 

# RUN 运行命令参数(使用 sed 命令修改 redis 配置文件,将本地访问,注释 Redis 的修改密码参数)
RUN sed -i 's/requirepass foobared/# requirepass foobared/g' /etc/redis.conf 

# RUN 运行命令参数(使用 sed 命令修改 redis 配置文件,将本地访问,关闭保护模式(关闭密码验证))
RUN sed -i 's/protected-mode yes/protected-mode no/g' /etc/redis.conf

# 暴露端口参数(将数据库默认端口6379暴露出去)
EXPOSE 6379

# 运行程序参数(在启动容器时运行指定程序:启动 redis)
ENTRYPOINT ["/usr/bin/redis-server","/etc/redis.conf"]

# **(可选操作)**显示 redis 目录下的文件。

[root@master redis]# tree 
.
├── Dockerfile
└── ftp.repo

0 directories, 2 files

# 通过 Dockerfile 构建镜像(docker build -t 自定义镜像名称 : 自定义镜像版本 . )最后显示 Successfully 就代表成功,否则就是出问题了。

[root@master redis]# docker build -t gpmall-redis:v1.0 .
Sending build context to Docker daemon  4.096kB
Step 1/10 : FROM centos:centos7.5.1804
 ---> cf49811e3cdb
Step 2/10 : MAINTAINER JR
 ---> Using cache
 ---> d8d626118d50
Step 3/10 : RUN mv /etc/yum.repos.d/* /media/
 ---> Using cache
 ---> d9b0c52c963e
Step 4/10 : COPY ftp.repo /etc/yum.repos.d/ftp.repo
 ---> Using cache
 ---> b2e452f9c127
Step 5/10 : RUN yum install -y redis
 ---> Running in c3e4683b6efe
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package redis.x86_64 0:3.2.12-2.el7 will be installed
--> Processing Dependency: logrotate for package: redis-3.2.12-2.el7.x86_64
--> Processing Dependency: libjemalloc.so.1()(64bit) for package: redis-3.2.12-2.el7.x86_64
--> Running transaction check
---> Package jemalloc.x86_64 0:3.6.0-1.el7 will be installed
---> Package logrotate.x86_64 0:3.8.6-15.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch            Version               Repository       Size
================================================================================
Installing:
 redis              x86_64          3.2.12-2.el7          Gpmall          544 k
Installing for dependencies:
 jemalloc           x86_64          3.6.0-1.el7           Gpmall          105 k
 logrotate          x86_64          3.8.6-15.el7          CentOS           69 k

Transaction Summary
================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 718 k
Installed size: 1.8 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                              5.7 MB/s | 718 kB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : jemalloc-3.6.0-1.el7.x86_64                                  1/3 
  Installing : logrotate-3.8.6-15.el7.x86_64                                2/3 
  Installing : redis-3.2.12-2.el7.x86_64                                    3/3 
  Verifying  : redis-3.2.12-2.el7.x86_64                                    1/3 
  Verifying  : logrotate-3.8.6-15.el7.x86_64                                2/3 
  Verifying  : jemalloc-3.6.0-1.el7.x86_64                                  3/3 

Installed:
  redis.x86_64 0:3.2.12-2.el7                                                   

Dependency Installed:
  jemalloc.x86_64 0:3.6.0-1.el7         logrotate.x86_64 0:3.8.6-15.el7        

Complete!
Removing intermediate container c3e4683b6efe
 ---> 830071b0a463
Step 6/10 : RUN sed -i 's/bind 127.0.0.1/bind 0.0.0.0/g' /etc/redis.conf
  --> Running in c5668e72b034
Removing intermediate container c5668e72b034
 ---> a8b47ebab773
Step 7/10 : RUN sed -i 's/requirepass foobared/# requirepass foobared/g' /etc/redis.conf
 ---> Running in 0234c656b491
Removing intermediate container 0234c656b491
 ---> 2dfba485fb16
Step 8/10 : RUN sed -i 's/protected-mode yes/protected-mode no/g' /etc/redis.conf
 ---> Running in 1046597985af
Removing intermediate container 1046597985af
 ---> 47c49e3e3d67
Step 9/10 : EXPOSE 6379
 ---> Running in 777f80f080e2
Removing intermediate container 777f80f080e2
 ---> a26a7c8409c1
Step 10/10 : ENTRYPOINT ["/usr/bin/redis-server","/etc/redis.conf"]
 ---> Running in 6f51fc967356
Removing intermediate container 6f51fc967356
 ---> d7a02a9a7498
Successfully built d7a02a9a7498
Successfully tagged gpmall-redis:v1.0

# 查看镜像列表

[root@master redis]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
gpmall-redis        v1.0                d7a02a9a7498        2 days ago          243MB
gpmall-mysql        v1.0                ab8fd1b59b4c        39 hours ago        837MB
centos              centos7.5.1804      cf49811e3cdb        2 years ago         200MB


编写 Zookeeper 服务的 Dockerfile 文件,并构建镜像

# 切换至 zookeeper 目录(所需文件准备):

  • 拷贝 ftp.repo 源至 zookeeper 目录下;
  • 切换目录至 zookeeper 目录
  • 将 zookeeper-3.4.14.tar.gz 文件拷贝至 zookeeper 目录下
[root@master redis]# cp -rvf ftp.repo ../zookeeper/
‘ftp.repo’ ->../zookeeper/ftp.repo’
[root@master redis]# cd ../zookeeper/
[root@master zookeeper]# cp -rvf /opt/pass/ChinaskillMall/zookeeper-3.4.14.tar.gz .
‘/opt/pass/ChinaskillMall/zookeeper-3.4.14.tar.gz’ -> ‘./zookeeper-3.4.14.tar.gz’

# 编写 Dockerfile 文件。

问题:可能有人疑惑为什么要写启动脚本;

回答:因为 zookeeper 的启动还是有点不一样的,不像是常规的命令,我编写脚本运行感觉直观一些,脚本内容其实就是 zookeeper 的启动方式,只不过和我们之前的有点不一样的是把 start 换成了 start-foreground 通过翻译也可以看出来,这个的意思其实就是启动时前台运行的意思;

[root@master zookeeper]# vim Dockerfile 
# FROM 指定源镜像
FROM centos:centos7.5.1804

# MAINTAINER 作者名称
MAINTAINER JR

# RUN 运行命令参数(将 yum 源中外网源移走,也可以删除,看个人习惯)
RUN mv /etc/yum.repos.d/* /media/

# COPY 拷贝参数(将 ftp.repo 源拷贝至容器中的 /etc/yum.repos.d/ 目录下)
COPY ftp.repo /etc/yum.repos.d/ftp.repo

# RUN 运行命令参数(安装 java 环境,因为 zookeeper 依赖于 java 不然无法运行)
RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel

# ADD 添加文件参数(将 zookeeper-3.4.14.tar.gz 压缩包,添加至 /opt 目录下)
ADD zookeeper-3.4.14.tar.gz /opt/

# RUN 运行命令参数(拷贝 zookeeper 配置文件样例,至当前目录并重命名为 zoo.conf,也可以用 mv 命令重命名,使用 cp 命令拷贝是为了保留原先的样例文件,防止现问题,无法还原)
RUN cp /opt/zookeeper-3.4.14/conf/zoo_sample.cfg /opt/zookeeper-3.4.14/conf/zoo.cfg 

# RUN 运行命令参数(编写启动 zookeeper 脚本)
RUN echo "/opt/zookeeper-3.4.14/bin/zkServer.sh start-foreground" >> /zkstart.sh

# RUN 运行命令参数(给脚本赋予执行权限)
RUN chmod +x /zkstart.sh

# 暴露端口参数(将 zookeeper 默认端口2181暴露出去)
EXPOSE 2181

# 运行程序参数(在启动容器时运行指定程序:启动 zookeeper)
ENTRYPOINT ["sh","/zkstart.sh"]

# **(可选操作)**显示 zookeeper 目录下的文件。

[root@master zookeeper]# tree 
.
├── Dockerfile
├── ftp.repo
└── zookeeper-3.4.14.tar.gz

0 directories, 3 files

# 通过 Dockerfile 构建镜像(docker build -t 自定义镜像名称 : 自定义镜像版本 . )最后显示 Successfully 就代表成功,否则就是出问题了。

[root@master zookeeper]# docker build -t gpmall-zookeeper:v1.0 .
Sending build context to Docker daemon  37.69MB
Step 1/11 : FROM centos:centos7.5.1804
 ---> cf49811e3cdb
Step 2/11 : MAINTAINER JR
 ---> Using cache
 ---> d8d626118d50
Step 3/11 : RUN mv /etc/yum.repos.d/* /media/
 ---> Using cache
 ---> d9b0c52c963e
Step 4/11 : COPY ftp.repo /etc/yum.repos.d/ftp.repo
 ---> Using cache
 ---> b2e452f9c127
Step 5/11 : RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
 ---> Running in b7352aff22f4
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.222.b10-1.el7_7 will be installed
--> Processing Dependency: java-1.8.0-openjdk-headless(x86-64) = 1:1.8.0.222.b10-1.el7_7 for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjava.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libasound.so.2(ALSA_0.9.0rc4)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libasound.so.2(ALSA_0.9)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libXcomposite(x86-64) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: gtk2(x86-64) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: fontconfig(x86-64) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libpng15.so.15()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjpeg.so.62()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libasound.so.2()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libXi.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libXext.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.222.b10-1.el7_7 will be installed
--> Running transaction check
---> Package alsa-lib.x86_64 0:1.1.8-1.el7 will be installed
---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: freetype >= 2.8-7 for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: freetype for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: libfreetype.so.6()(64bit) for package: fontconfig-2.13.0-4.3.el7.x86_64
---> Package giflib.x86_64 0:4.1.6-9.el7 will be installed
--> Processing Dependency: libSM.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64
--> Processing Dependency: libICE.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64
---> Package gtk2.x86_64 0:2.24.31-1.el7 will be installed
--> Processing Dependency: pango >= 1.20.0-1 for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libtiff >= 3.6.1 for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXrandr >= 1.2.99.4-2 for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: atk >= 1.29.4-2 for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: hicolor-icon-theme for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: gtk-update-icon-cache for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libpangoft2-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libpango-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libgdk_pixbuf-2.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libcups.so.2()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libcairo.so.2()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libatk-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXrandr.so.2()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXinerama.so.1()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXfixes.so.3()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXdamage.so.1()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXcursor.so.1()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.222.b10-1.el7_7 will be installed
--> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: copy-jdk-configs >= 3.3 for package: 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: pcsc-lite-libs(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_64
---> Package libX11.x86_64 0:1.6.7-2.el7 will be installed
--> Processing Dependency: libX11-common >= 1.6.7-2.el7 for package: libX11-1.6.7-2.el7.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-2.el7.x86_64
---> Package libXcomposite.x86_64 0:0.4.4-4.1.el7 will be installed
---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed
---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed
---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed
---> Package libXtst.x86_64 0:1.2.3-1.el7 will be installed
---> Package libjpeg-turbo.x86_64 0:1.2.90-5.el7 will be installed
---> Package libpng.x86_64 2:1.5.13-7.el7_2 will be installed
---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installed
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Running transaction check
---> Package atk.x86_64 0:2.28.1-1.el7 will be installed
---> Package cairo.x86_64 0:1.15.12-4.el7 will be installed
--> Processing Dependency: libpixman-1.so.0()(64bit) for package: cairo-1.15.12-4.el7.x86_64
--> Processing Dependency: libGL.so.1()(64bit) for package: cairo-1.15.12-4.el7.x86_64
--> Processing Dependency: libEGL.so.1()(64bit) for package: cairo-1.15.12-4.el7.x86_64
---> Package copy-jdk-configs.noarch 0:3.3-10.el7_5 will be installed
---> Package cups-libs.x86_64 1:1.6.3-40.el7 will be installed
--> Processing Dependency: libavahi-common.so.3()(64bit) for package: 1:cups-libs-1.6.3-40.el7.x86_64
--> Processing Dependency: libavahi-client.so.3()(64bit) for package: 1:cups-libs-1.6.3-40.el7.x86_64
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
---> Package freetype.x86_64 0:2.8-14.el7 will be installed
---> Package gdk-pixbuf2.x86_64 0:2.36.12-3.el7 will be installed
--> Processing Dependency: libjasper.so.1()(64bit) for package: gdk-pixbuf2-2.36.12-3.el7.x86_64
---> Package gtk-update-icon-cache.x86_64 0:3.22.30-3.el7 will be installed
---> Package hicolor-icon-theme.noarch 0:0.12-7.el7 will be installed
---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch
--> Processing Dependency: libxslt for package: javapackages-tools-3.4.1-11.el7.noarch
---> Package libICE.x86_64 0:1.0.9-9.el7 will be installed
---> Package libSM.x86_64 0:1.2.2-2.el7 will be installed
---> Package libX11-common.noarch 0:1.6.7-2.el7 will be installed
---> Package libXcursor.x86_64 0:1.1.15-1.el7 will be installed
---> Package libXdamage.x86_64 0:1.1.4-4.1.el7 will be installed
---> Package libXfixes.x86_64 0:5.0.3-1.el7 will be installed
---> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed
---> Package libXrandr.x86_64 0:1.5.1-2.el7 will be installed
---> Package libtiff.x86_64 0:4.0.3-27.el7_3 will be installed
--> Processing Dependency: libjbig.so.2.0()(64bit) for package: libtiff-4.0.3-27.el7_3.x86_64
---> Package libxcb.x86_64 0:1.13-1.el7 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.x86_64
---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed
---> Package pango.x86_64 0:1.42.4-4.el7_7 will be installed
--> Processing Dependency: libthai(x86-64) >= 0.1.9 for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libXft(x86-64) >= 2.0.0 for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: harfbuzz(x86-64) >= 1.4.2 for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: glib2(x86-64) >= 2.56.1 for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: fribidi(x86-64) >= 1.0 for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libthai.so.0(LIBTHAI_0.1)(64bit) for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libthai.so.0()(64bit) for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libharfbuzz.so.0()(64bit) for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libfribidi.so.0()(64bit) for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libXft.so.2()(64bit) for package: pango-1.42.4-4.el7_7.x86_64
---> Package pcsc-lite-libs.x86_64 0:1.8.8-8.el7 will be installed
---> Package ttmkfdir.x86_64 0:3.0.9-42.el7 will be installed
---> Package tzdata-java.noarch 0:2019c-1.el7 will be installed
---> Package xorg-x11-font-utils.x86_64 1:7.5-21.el7 will be installed
--> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-21.el7.x86_64
--> Running transaction check
---> Package avahi-libs.x86_64 0:0.6.31-19.el7 will be installed
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
---> Package fribidi.x86_64 0:1.0.2-1.el7 will be installed
---> Package glib2.x86_64 0:2.54.2-2.el7 will be updated
---> Package glib2.x86_64 0:2.56.1-5.el7 will be an update
---> Package harfbuzz.x86_64 0:1.7.5-2.el7 will be installed
--> Processing Dependency: libgraphite2.so.3()(64bit) for package: harfbuzz-1.7.5-2.el7.x86_64
---> Package jasper-libs.x86_64 0:1.900.1-33.el7 will be installed
---> Package jbigkit-libs.x86_64 0:2.0-11.el7 will be installed
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
---> Package libXft.x86_64 0:2.3.2-2.el7 will be installed
---> Package libfontenc.x86_64 0:1.1.3-3.el7 will be installed
---> Package libglvnd-egl.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed
--> Processing Dependency: libglvnd(x86-64) = 1:1.0.1-0.8.git5baa1e5.el7 for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64
--> Processing Dependency: mesa-libEGL(x86-64) >= 13.0.4-1 for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64
--> Processing Dependency: libGLdispatch.so.0()(64bit) for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64
---> Package libglvnd-glx.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed
--> Processing Dependency: mesa-libGL(x86-64) >= 13.0.4-1 for package: 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64
---> Package libthai.x86_64 0:0.1.14-9.el7 will be installed
---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed
---> Package pixman.x86_64 0:0.34.0-1.el7 will be installed
---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch
--> Running transaction check
---> Package graphite2.x86_64 0:1.3.10-1.el7_3 will be installed
---> Package libglvnd.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed
---> Package mesa-libEGL.x86_64 0:18.3.4-5.el7 will be installed
--> Processing Dependency: mesa-libgbm = 18.3.4-5.el7 for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libxshmfence.so.1()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libwayland-server.so.0()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libwayland-client.so.0()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libglapi.so.0()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libgbm.so.1()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libdrm.so.2()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
---> Package mesa-libGL.x86_64 0:18.3.4-5.el7 will be installed
--> Processing Dependency: libXxf86vm.so.1()(64bit) for package: mesa-libGL-18.3.4-5.el7.x86_64
---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed
--> Running transaction check
---> Package libXxf86vm.x86_64 0:1.1.4-1.el7 will be installed
---> Package libdrm.x86_64 0:2.4.97-2.el7 will be installed
--> Processing Dependency: libpciaccess.so.0()(64bit) for package: libdrm-2.4.97-2.el7.x86_64
---> Package libwayland-client.x86_64 0:1.15.0-1.el7 will be installed
---> Package libwayland-server.x86_64 0:1.15.0-1.el7 will be installed
---> Package libxshmfence.x86_64 0:1.2-1.el7 will be installed
---> Package mesa-libgbm.x86_64 0:18.3.4-5.el7 will be installed
---> Package mesa-libglapi.x86_64 0:18.3.4-5.el7 will be installed
--> Running transaction check
---> Package libpciaccess.x86_64 0:0.14-1.el7 will be installed
--> Processing Dependency: hwdata for package: libpciaccess-0.14-1.el7.x86_64
--> Running transaction check
---> Package hwdata.x86_64 0:0.252-9.3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                      Arch    Version                     Repository
                                                                           Size
================================================================================
Installing:
 java-1.8.0-openjdk           x86_64  1:1.8.0.222.b10-1.el7_7     Gpmall  288 k
 java-1.8.0-openjdk-devel     x86_64  1:1.8.0.222.b10-1.el7_7     Gpmall  9.8 M
Installing for dependencies:
 alsa-lib                     x86_64  1.1.8-1.el7                 Gpmall  425 k
 atk                          x86_64  2.28.1-1.el7                Gpmall  263 k
 avahi-libs                   x86_64  0.6.31-19.el7               CentOS   61 k
 cairo                        x86_64  1.15.12-4.el7               Gpmall  741 k
 copy-jdk-configs             noarch  3.3-10.el7_5                Gpmall   21 k
 cups-libs                    x86_64  1:1.6.3-40.el7              Gpmall  358 k
 dejavu-fonts-common          noarch  2.33-6.el7                  CentOS   64 k
 dejavu-sans-fonts            noarch  2.33-6.el7                  CentOS  1.4 M
 fontconfig                   x86_64  2.13.0-4.3.el7              Gpmall  254 k
 fontpackages-filesystem      noarch  1.44-8.el7                  CentOS  9.9 k
 freetype                     x86_64  2.8-14.el7                  Gpmall  380 k
 fribidi                      x86_64  1.0.2-1.el7                 Gpmall   79 k
 gdk-pixbuf2                  x86_64  2.36.12-3.el7               Gpmall  570 k
 giflib                       x86_64  4.1.6-9.el7                 CentOS   40 k
 graphite2                    x86_64  1.3.10-1.el7_3              CentOS  115 k
 gtk-update-icon-cache        x86_64  3.22.30-3.el7               Gpmall   28 k
 gtk2                         x86_64  2.24.31-1.el7               CentOS  3.4 M
 harfbuzz                     x86_64  1.7.5-2.el7                 Gpmall  267 k
 hicolor-icon-theme           noarch  0.12-7.el7                  CentOS   42 k
 hwdata                       x86_64  0.252-9.3.el7               Gpmall  2.4 M
 jasper-libs                  x86_64  1.900.1-33.el7              Gpmall  150 k
 java-1.8.0-openjdk-headless  x86_64  1:1.8.0.222.b10-1.el7_7     Gpmall   32 M
 javapackages-tools           noarch  3.4.1-11.el7                CentOS   73 k
 jbigkit-libs                 x86_64  2.0-11.el7                  CentOS   46 k
 libICE                       x86_64  1.0.9-9.el7                 CentOS   66 k
 libSM                        x86_64  1.2.2-2.el7                 CentOS   39 k
 libX11                       x86_64  1.6.7-2.el7                 Gpmall  607 k
 libX11-common                noarch  1.6.7-2.el7                 Gpmall  164 k
 libXau                       x86_64  1.0.8-2.1.el7               CentOS   29 k
 libXcomposite                x86_64  0.4.4-4.1.el7               CentOS   22 k
 libXcursor                   x86_64  1.1.15-1.el7                Gpmall   30 k
 libXdamage                   x86_64  1.1.4-4.1.el7               CentOS   20 k
 libXext                      x86_64  1.3.3-3.el7                 CentOS   39 k
 libXfixes                    x86_64  5.0.3-1.el7                 CentOS   18 k
 libXft                       x86_64  2.3.2-2.el7                 CentOS   58 k
 libXi                        x86_64  1.7.9-1.el7                 CentOS   40 k
 libXinerama                  x86_64  1.1.3-2.1.el7               CentOS   14 k
 libXrandr                    x86_64  1.5.1-2.el7                 CentOS   27 k
 libXrender                   x86_64  0.9.10-1.el7                CentOS   26 k
 libXtst                      x86_64  1.2.3-1.el7                 CentOS   20 k
 libXxf86vm                   x86_64  1.1.4-1.el7                 CentOS   18 k
 libdrm                       x86_64  2.4.97-2.el7                Gpmall  151 k
 libfontenc                   x86_64  1.1.3-3.el7                 CentOS   31 k
 libglvnd                     x86_64  1:1.0.1-0.8.git5baa1e5.el7  Gpmall   89 k
 libglvnd-egl                 x86_64  1:1.0.1-0.8.git5baa1e5.el7  Gpmall   44 k
 libglvnd-glx                 x86_64  1:1.0.1-0.8.git5baa1e5.el7  Gpmall  125 k
 libjpeg-turbo                x86_64  1.2.90-5.el7                CentOS  134 k
 libpciaccess                 x86_64  0.14-1.el7                  CentOS   26 k
 libpng                       x86_64  2:1.5.13-7.el7_2            CentOS  213 k
 libthai                      x86_64  0.1.14-9.el7                CentOS  187 k
 libtiff                      x86_64  4.0.3-27.el7_3              CentOS  170 k
 libwayland-client            x86_64  1.15.0-1.el7                Gpmall   33 k
 libwayland-server            x86_64  1.15.0-1.el7                Gpmall   39 k
 libxcb                       x86_64  1.13-1.el7                  Gpmall  214 k
 libxshmfence                 x86_64  1.2-1.el7                   CentOS  7.2 k
 libxslt                      x86_64  1.1.28-5.el7                CentOS  242 k
 lksctp-tools                 x86_64  1.0.17-2.el7                CentOS   88 k
 mesa-libEGL                  x86_64  18.3.4-5.el7                Gpmall  109 k
 mesa-libGL                   x86_64  18.3.4-5.el7                Gpmall  165 k
 mesa-libgbm                  x86_64  18.3.4-5.el7                Gpmall   39 k
 mesa-libglapi                x86_64  18.3.4-5.el7                Gpmall   45 k
 pango                        x86_64  1.42.4-4.el7_7              Gpmall  280 k
 pcsc-lite-libs               x86_64  1.8.8-8.el7                 Gpmall   34 k
 pixman                       x86_64  0.34.0-1.el7                CentOS  248 k
 python-javapackages          noarch  3.4.1-11.el7                CentOS   31 k
 python-lxml                  x86_64  3.2.1-4.el7                 CentOS  758 k
 ttmkfdir                     x86_64  3.0.9-42.el7                CentOS   48 k
 tzdata-java                  noarch  2019c-1.el7                 Gpmall  187 k
 xorg-x11-font-utils          x86_64  1:7.5-21.el7                Gpmall  104 k
 xorg-x11-fonts-Type1         noarch  7.5-9.el7                   CentOS  521 k
Updating for dependencies:
 glib2                        x86_64  2.56.1-5.el7                Gpmall  2.5 M

Transaction Summary
================================================================================
Install  2 Packages (+70 Dependent packages)
Upgrade             (  1 Dependent package)

Total download size: 61 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
--------------------------------------------------------------------------------
Total                                              7.4 MB/s |  61 MB  00:08     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : glib2-2.56.1-5.el7.x86_64                                   1/74 
  Installing : libjpeg-turbo-1.2.90-5.el7.x86_64                           2/74 
  Installing : 2:libpng-1.5.13-7.el7_2.x86_64                              3/74 
  Installing : freetype-2.8-14.el7.x86_64                                  4/74 
  Installing : mesa-libglapi-18.3.4-5.el7.x86_64                           5/74 
  Installing : libxshmfence-1.2-1.el7.x86_64                               6/74 
  Installing : libxslt-1.1.28-5.el7.x86_64                                 7/74 
  Installing : 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64                  8/74 
  Installing : fontpackages-filesystem-1.44-8.el7.noarch                   9/74 
  Installing : libICE-1.0.9-9.el7.x86_64                                  10/74 
  Installing : libwayland-server-1.15.0-1.el7.x86_64                      11/74 
  Installing : libSM-1.2.2-2.el7.x86_64                                   12/74 
  Installing : dejavu-fonts-common-2.33-6.el7.noarch                      13/74 
  Installing : dejavu-sans-fonts-2.33-6.el7.noarch                        14/74 
  Installing : fontconfig-2.13.0-4.3.el7.x86_64                           15/74 
  Installing : python-lxml-3.2.1-4.el7.x86_64                             16/74 
  Installing : python-javapackages-3.4.1-11.el7.noarch                    17/74 
  Installing : javapackages-tools-3.4.1-11.el7.noarch                     18/74 
  Installing : ttmkfdir-3.0.9-42.el7.x86_64                               19/74 
  Installing : jasper-libs-1.900.1-33.el7.x86_64                          20/74 
  Installing : atk-2.28.1-1.el7.x86_64                                    21/74 
  Installing : pixman-0.34.0-1.el7.x86_64                                 22/74 
  Installing : copy-jdk-configs-3.3-10.el7_5.noarch                       23/74 
  Installing : libfontenc-1.1.3-3.el7.x86_64                              24/74 
  Installing : 1:xorg-x11-font-utils-7.5-21.el7.x86_64                    25/74 
  Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch                      26/74 
  Installing : libthai-0.1.14-9.el7.x86_64                                27/74 
  Installing : hwdata-0.252-9.3.el7.x86_64                                28/74 
  Installing : libpciaccess-0.14-1.el7.x86_64                             29/74 
  Installing : libdrm-2.4.97-2.el7.x86_64                                 30/74 
  Installing : mesa-libgbm-18.3.4-5.el7.x86_64                            31/74 
  Installing : graphite2-1.3.10-1.el7_3.x86_64                            32/74 
  Installing : harfbuzz-1.7.5-2.el7.x86_64                                33/74 
  Installing : libXau-1.0.8-2.1.el7.x86_64                                34/74 
  Installing : libxcb-1.13-1.el7.x86_64                                   35/74 
  Installing : libwayland-client-1.15.0-1.el7.x86_64                      36/74 
  Installing : jbigkit-libs-2.0-11.el7.x86_64                             37/74 
  Installing : libtiff-4.0.3-27.el7_3.x86_64                              38/74 
  Installing : pcsc-lite-libs-1.8.8-8.el7.x86_64                          39/74 
  Installing : fribidi-1.0.2-1.el7.x86_64                                 40/74 
  Installing : lksctp-tools-1.0.17-2.el7.x86_64                           41/74 
  Installing : tzdata-java-2019c-1.el7.noarch                             42/74 
  Installing : libX11-common-1.6.7-2.el7.noarch                           43/74 
  Installing : libX11-1.6.7-2.el7.x86_64                                  44/74 
  Installing : libXext-1.3.3-3.el7.x86_64                                 45/74 
  Installing : libXrender-0.9.10-1.el7.x86_64                             46/74 
  Installing : libXfixes-5.0.3-1.el7.x86_64                               47/74 
  Installing : libXi-1.7.9-1.el7.x86_64                                   48/74 
  Installing : libXdamage-1.1.4-4.1.el7.x86_64                            49/74 
  Installing : gdk-pixbuf2-2.36.12-3.el7.x86_64                           50/74 
  Installing : libXcomposite-0.4.4-4.1.el7.x86_64                         51/74 
  Installing : gtk-update-icon-cache-3.22.30-3.el7.x86_64                 52/74 
  Installing : libXtst-1.2.3-1.el7.x86_64                                 53/74 
  Installing : libXcursor-1.1.15-1.el7.x86_64                             54/74 
  Installing : libXft-2.3.2-2.el7.x86_64                                  55/74 
  Installing : libXrandr-1.5.1-2.el7.x86_64                               56/74 
  Installing : libXxf86vm-1.1.4-1.el7.x86_64                              57/74 
  Installing : mesa-libGL-18.3.4-5.el7.x86_64                             58/74 
  Installing : 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64             59/74 
  Installing : libXinerama-1.1.3-2.1.el7.x86_64                           60/74 
  Installing : giflib-4.1.6-9.el7.x86_64                                  61/74 
  Installing : 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64             62/74 
  Installing : mesa-libEGL-18.3.4-5.el7.x86_64                            63/74 
  Installing : cairo-1.15.12-4.el7.x86_64                                 64/74 
  Installing : pango-1.42.4-4.el7_7.x86_64                                65/74 
  Installing : avahi-libs-0.6.31-19.el7.x86_64                            66/74 
  Installing : 1:cups-libs-1.6.3-40.el7.x86_64                            67/74 
  Installing : 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_   68/74 
  Installing : alsa-lib-1.1.8-1.el7.x86_64                                69/74 
  Installing : hicolor-icon-theme-0.12-7.el7.noarch                       70/74 
  Installing : gtk2-2.24.31-1.el7.x86_64                                  71/74 
  Installing : 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64          72/74 
  Installing : 1:java-1.8.0-openjdk-devel-1.8.0.222.b10-1.el7_7.x86_64    73/74 
  Cleanup    : glib2-2.54.2-2.el7.x86_64                                  74/74 
  Verifying  : libXext-1.3.3-3.el7.x86_64                                  1/74 
  Verifying  : libpciaccess-0.14-1.el7.x86_64                              2/74 
  Verifying  : libXi-1.7.9-1.el7.x86_64                                    3/74 
  Verifying  : libtiff-4.0.3-27.el7_3.x86_64                               4/74 
  Verifying  : fontconfig-2.13.0-4.3.el7.x86_64                            5/74 
  Verifying  : 2:libpng-1.5.13-7.el7_2.x86_64                              6/74 
  Verifying  : giflib-4.1.6-9.el7.x86_64                                   7/74 
  Verifying  : libjpeg-turbo-1.2.90-5.el7.x86_64                           8/74 
  Verifying  : libXrender-0.9.10-1.el7.x86_64                              9/74 
  Verifying  : javapackages-tools-3.4.1-11.el7.noarch                     10/74 
  Verifying  : 1:xorg-x11-font-utils-7.5-21.el7.x86_64                    11/74 
  Verifying  : libXxf86vm-1.1.4-1.el7.x86_64                              12/74 
  Verifying  : libwayland-server-1.15.0-1.el7.x86_64                      13/74 
  Verifying  : libXcursor-1.1.15-1.el7.x86_64                             14/74 
  Verifying  : mesa-libgbm-18.3.4-5.el7.x86_64                            15/74 
  Verifying  : 1:java-1.8.0-openjdk-devel-1.8.0.222.b10-1.el7_7.x86_64    16/74 
  Verifying  : freetype-2.8-14.el7.x86_64                                 17/74 
  Verifying  : libICE-1.0.9-9.el7.x86_64                                  18/74 
  Verifying  : gtk2-2.24.31-1.el7.x86_64                                  19/74 
  Verifying  : ttmkfdir-3.0.9-42.el7.x86_64                               20/74 
  Verifying  : hicolor-icon-theme-0.12-7.el7.noarch                       21/74 
  Verifying  : alsa-lib-1.1.8-1.el7.x86_64                                22/74 
  Verifying  : 1:cups-libs-1.6.3-40.el7.x86_64                            23/74 
  Verifying  : avahi-libs-0.6.31-19.el7.x86_64                            24/74 
  Verifying  : gdk-pixbuf2-2.36.12-3.el7.x86_64                           25/74 
  Verifying  : glib2-2.56.1-5.el7.x86_64                                  26/74 
  Verifying  : pango-1.42.4-4.el7_7.x86_64                                27/74 
  Verifying  : fontpackages-filesystem-1.44-8.el7.noarch                  28/74 
  Verifying  : gtk-update-icon-cache-3.22.30-3.el7.x86_64                 29/74 
  Verifying  : python-javapackages-3.4.1-11.el7.noarch                    30/74 
  Verifying  : mesa-libGL-18.3.4-5.el7.x86_64                             31/74 
  Verifying  : dejavu-fonts-common-2.33-6.el7.noarch                      32/74 
  Verifying  : libXcomposite-0.4.4-4.1.el7.x86_64                         33/74 
  Verifying  : libXtst-1.2.3-1.el7.x86_64                                 34/74 
  Verifying  : libX11-1.6.7-2.el7.x86_64                                  35/74 
  Verifying  : libX11-common-1.6.7-2.el7.noarch                           36/74 
  Verifying  : libxcb-1.13-1.el7.x86_64                                   37/74 
  Verifying  : libXft-2.3.2-2.el7.x86_64                                  38/74 
  Verifying  : libdrm-2.4.97-2.el7.x86_64                                 39/74 
  Verifying  : tzdata-java-2019c-1.el7.noarch                             40/74 
  Verifying  : lksctp-tools-1.0.17-2.el7.x86_64                           41/74 
  Verifying  : 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64                 42/74 
  Verifying  : 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_   43/74 
  Verifying  : xorg-x11-fonts-Type1-7.5-9.el7.noarch                      44/74 
  Verifying  : harfbuzz-1.7.5-2.el7.x86_64                                45/74 
  Verifying  : libxslt-1.1.28-5.el7.x86_64                                46/74 
  Verifying  : fribidi-1.0.2-1.el7.x86_64                                 47/74 
  Verifying  : 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64             48/74 
  Verifying  : 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64             49/74 
  Verifying  : dejavu-sans-fonts-2.33-6.el7.noarch                        50/74 
  Verifying  : libXrandr-1.5.1-2.el7.x86_64                               51/74 
  Verifying  : pcsc-lite-libs-1.8.8-8.el7.x86_64                          52/74 
  Verifying  : atk-2.28.1-1.el7.x86_64                                    53/74 
  Verifying  : jbigkit-libs-2.0-11.el7.x86_64                             54/74 
  Verifying  : cairo-1.15.12-4.el7.x86_64                                 55/74 
  Verifying  : 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64          56/74 
  Verifying  : mesa-libglapi-18.3.4-5.el7.x86_64                          57/74 
  Verifying  : libwayland-client-1.15.0-1.el7.x86_64                      58/74 
  Verifying  : libxshmfence-1.2-1.el7.x86_64                              59/74 
  Verifying  : libXau-1.0.8-2.1.el7.x86_64                                60/74 
  Verifying  : libSM-1.2.2-2.el7.x86_64                                   61/74 
  Verifying  : jasper-libs-1.900.1-33.el7.x86_64                          62/74 
  Verifying  : graphite2-1.3.10-1.el7_3.x86_64                            63/74 
  Verifying  : hwdata-0.252-9.3.el7.x86_64                                64/74 
  Verifying  : libXinerama-1.1.3-2.1.el7.x86_64                           65/74 
  Verifying  : python-lxml-3.2.1-4.el7.x86_64                             66/74 
  Verifying  : libthai-0.1.14-9.el7.x86_64                                67/74 
  Verifying  : libXdamage-1.1.4-4.1.el7.x86_64                            68/74 
  Verifying  : libXfixes-5.0.3-1.el7.x86_64                               69/74 
  Verifying  : mesa-libEGL-18.3.4-5.el7.x86_64                            70/74 
  Verifying  : libfontenc-1.1.3-3.el7.x86_64                              71/74 
  Verifying  : copy-jdk-configs-3.3-10.el7_5.noarch                       72/74 
  Verifying  : pixman-0.34.0-1.el7.x86_64                                 73/74 
  Verifying  : glib2-2.54.2-2.el7.x86_64                                  74/74 

Installed:
  java-1.8.0-openjdk.x86_64 1:1.8.0.222.b10-1.el7_7                             
  java-1.8.0-openjdk-devel.x86_64 1:1.8.0.222.b10-1.el7_7                       

Dependency Installed:
  alsa-lib.x86_64 0:1.1.8-1.el7                                                 
  atk.x86_64 0:2.28.1-1.el7                                                     
  avahi-libs.x86_64 0:0.6.31-19.el7                                             
  cairo.x86_64 0:1.15.12-4.el7                                                  
  copy-jdk-configs.noarch 0:3.3-10.el7_5                                        
  cups-libs.x86_64 1:1.6.3-40.el7                                               
  dejavu-fonts-common.noarch 0:2.33-6.el7                                       
  dejavu-sans-fonts.noarch 0:2.33-6.el7                                         
  fontconfig.x86_64 0:2.13.0-4.3.el7                                            
  fontpackages-filesystem.noarch 0:1.44-8.el7                                   
  freetype.x86_64 0:2.8-14.el7                                                  
  fribidi.x86_64 0:1.0.2-1.el7                                                  
  gdk-pixbuf2.x86_64 0:2.36.12-3.el7                                            
  giflib.x86_64 0:4.1.6-9.el7                                                   
  graphite2.x86_64 0:1.3.10-1.el7_3                                             
  gtk-update-icon-cache.x86_64 0:3.22.30-3.el7                                  
  gtk2.x86_64 0:2.24.31-1.el7                                                   
  harfbuzz.x86_64 0:1.7.5-2.el7                                                 
  hicolor-icon-theme.noarch 0:0.12-7.el7                                        
  hwdata.x86_64 0:0.252-9.3.el7                                                 
  jasper-libs.x86_64 0:1.900.1-33.el7                                           
  java-1.8.0-openjdk-headless.x86_64 1:1.8.0.222.b10-1.el7_7                    
  javapackages-tools.noarch 0:3.4.1-11.el7                                      
  jbigkit-libs.x86_64 0:2.0-11.el7                                              
  libICE.x86_64 0:1.0.9-9.el7                                                   
  libSM.x86_64 0:1.2.2-2.el7                                                    
  libX11.x86_64 0:1.6.7-2.el7                                                   
  libX11-common.noarch 0:1.6.7-2.el7                                            
  libXau.x86_64 0:1.0.8-2.1.el7                                                 
  libXcomposite.x86_64 0:0.4.4-4.1.el7                                          
  libXcursor.x86_64 0:1.1.15-1.el7                                              
  libXdamage.x86_64 0:1.1.4-4.1.el7                                             
  libXext.x86_64 0:1.3.3-3.el7                                                  
  libXfixes.x86_64 0:5.0.3-1.el7                                                
  libXft.x86_64 0:2.3.2-2.el7                                                   
  libXi.x86_64 0:1.7.9-1.el7                                                    
  libXinerama.x86_64 0:1.1.3-2.1.el7                                            
  libXrandr.x86_64 0:1.5.1-2.el7                                                
  libXrender.x86_64 0:0.9.10-1.el7                                              
  libXtst.x86_64 0:1.2.3-1.el7                                                  
  libXxf86vm.x86_64 0:1.1.4-1.el7                                               
  libdrm.x86_64 0:2.4.97-2.el7                                                  
  libfontenc.x86_64 0:1.1.3-3.el7                                               
  libglvnd.x86_64 1:1.0.1-0.8.git5baa1e5.el7                                    
  libglvnd-egl.x86_64 1:1.0.1-0.8.git5baa1e5.el7                                
  libglvnd-glx.x86_64 1:1.0.1-0.8.git5baa1e5.el7                                
  libjpeg-turbo.x86_64 0:1.2.90-5.el7                                           
  libpciaccess.x86_64 0:0.14-1.el7                                              
  libpng.x86_64 2:1.5.13-7.el7_2                                                
  libthai.x86_64 0:0.1.14-9.el7                                                 
  libtiff.x86_64 0:4.0.3-27.el7_3                                               
  libwayland-client.x86_64 0:1.15.0-1.el7                                       
  libwayland-server.x86_64 0:1.15.0-1.el7                                       
  libxcb.x86_64 0:1.13-1.el7                                                    
  libxshmfence.x86_64 0:1.2-1.el7                                               
  libxslt.x86_64 0:1.1.28-5.el7                                                 
  lksctp-tools.x86_64 0:1.0.17-2.el7                                            
  mesa-libEGL.x86_64 0:18.3.4-5.el7                                             
  mesa-libGL.x86_64 0:18.3.4-5.el7                                              
  mesa-libgbm.x86_64 0:18.3.4-5.el7                                             
  mesa-libglapi.x86_64 0:18.3.4-5.el7                                           
  pango.x86_64 0:1.42.4-4.el7_7                                                 
  pcsc-lite-libs.x86_64 0:1.8.8-8.el7                                           
  pixman.x86_64 0:0.34.0-1.el7                                                  
  python-javapackages.noarch 0:3.4.1-11.el7                                     
  python-lxml.x86_64 0:3.2.1-4.el7                                              
  ttmkfdir.x86_64 0:3.0.9-42.el7                                                
  tzdata-java.noarch 0:2019c-1.el7                                              
  xorg-x11-font-utils.x86_64 1:7.5-21.el7                                       
  xorg-x11-fonts-Type1.noarch 0:7.5-9.el7                                       

Dependency Updated:
  glib2.x86_64 0:2.56.1-5.el7                                                   

Complete!
Removing intermediate container b7352aff22f4
 ---> 579ac69feb0f
Step 6/11 : ADD zookeeper-3.4.14.tar.gz /opt/
 ---> bd247591378d
Step 7/11 : RUN cp /opt/zookeeper-3.4.14/conf/zoo_sample.cfg /opt/zookeeper-3.4.14/conf/zoo.cfg
 ---> Running in db435a51916b
Removing intermediate container db435a51916b
 ---> c55f87af8bfb
Step 8/11 : RUN echo "/opt/zookeeper-3.4.14/bin/zkServer.sh start-foreground" >> /zkstart.sh
 ---> Running in 96982d0af82c
Removing intermediate container 96982d0af82c
 ---> d29f0fb670d4
Step 9/11 : RUN chmod +x /zkstart.sh
 ---> Running in ec2b0c49bc39
Removing intermediate container ec2b0c49bc39
 ---> 82327747ae75
Step 10/11 : EXPOSE 2181
 ---> Running in 68b7d4ea8cbd
Removing intermediate container 68b7d4ea8cbd
 ---> f13d339558a0
Step 11/11 : ENTRYPOINT ["sh","/zkstart.sh"]
 ---> Running in 1f293c88f00a
Removing intermediate container 1f293c88f00a
 ---> c16dce732933
Successfully built c16dce732933
Successfully tagged gpmall-zookeeper:v1.0

# 查看镜像列表

[root@master zookeeper]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
gpmall-mysql        v1.0                ab8fd1b59b4c        39 hours ago        837MB
gpmall-zookeeper    v1.0                c16dce732933        2 days ago          539MB
gpmall-redis        v1.0                d7a02a9a7498        2 days ago          243MB


编写 Kafka 服务的 Dockerfile 文件,并构建镜像

# 切换至 kafka 目录(所需文件准备):

  • 拷贝 ftp.repo 源至 kafka 目录下;
  • 切换目录至 kafka 目录
  • 将 zookeeper-3.4.14.tar.gz 文件拷贝至 kafka 目录下
[root@master zookeeper]# cp -rvf ftp.repo ../kafka/
‘ftp.repo’ ->../kafka/ftp.repo’
[root@master zookeeper]# cd ../kafka/
[root@master kafka]# cp -rvf /opt/pass/ChinaskillMall/kafka_2.11-1.1.1.tgz .
‘/opt/pass/ChinaskillMall/kafka_2.11-1.1.1.tgz’ -> ‘./kafka_2.11-1.1.1.tgz’

# 编写 Dockerfile 文件。

问题:可能有人看不懂为什么要把 localhost 改成 zk1.mall;

回答:和之前文章配置差不多,上面的 jar 包解析也解释了一些,kafka 要通 zk1.mall 域名进行连接(和 IP 的作用差不多的),写 docker-compose.yaml 文件,会解释为什么要写 zk1.mall 为地址就能连接了;

[root@master kafka]# vim Dockerfile 
# FROM 指定源镜像
FROM centos:centos7.5.1804

# MAINTAINER 作者名称
MAINTAINER JR

# RUN 运行命令参数(将 yum 源中外网源移走,也可以删除,看个人习惯)
RUN mv /etc/yum.repos.d/* /media/

# COPY 拷贝参数(将 ftp.repo 源拷贝至容器中的 /etc/yum.repos.d/ 目录下)
COPY ftp.repo /etc/yum.repos.d/ftp.repo 

# RUN 运行命令参数(安装 java 环境,因为 kafka 依赖于 java 不然无法运行)
RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel

# ADD 添加文件参数(将 kafka_2.11-1.1.1.tgz 压缩包,添加至 /opt 目录下)
ADD kafka_2.11-1.1.1.tgz /opt/

# RUN 运行命令参数(修改 kafka 配置文件,至于为什么这么修改可以看一下之前的文章)
RUN sed -i 's/^zookeeper\.connect\=localhost\:2181/zookeeper\.connect\=zk1.mall\:2181/g' /opt/kafka_2.11-1.1.1/config/server.properties

# RUN 运行命令参数(编写启动 kafka 脚本)
RUN echo "/opt/kafka_2.11-1.1.1/bin/kafka-server-start.sh /opt/kafka_2.11-1.1.1/config/server.properties" >> /kastart.sh

# RUN 运行命令参数(给脚本赋予执行权限)
RUN chmod +x /kastart.sh

# 暴露端口参数(将 kafka 默认端口9092暴露出去)
EXPOSE 9092

# 运行程序参数(在启动容器时运行指定程序:启动 kafka)
ENTRYPOINT ["sh","/kastart.sh"]

# **(可选操作)**显示 kafka 目录下的文件。

[root@master kafka]# tree 
.
├── Dockerfile
├── ftp.repo
└── kafka_2.11-1.1.1.tgz

0 directories, 3 files

# 通过 Dockerfile 构建镜像(docker build -t 自定义镜像名称 : 自定义镜像版本 . )最后显示 Successfully 就代表成功,否则就是出问题了。

[root@master kafka]# docker build -t gpmall-kafka:v1.0 .
Sending build context to Docker daemon  57.48MB
Step 1/11 : FROM centos:centos7.5.1804
 ---> cf49811e3cdb
Step 2/11 : MAINTAINER JR
 ---> Using cache
 ---> d8d626118d50
Step 3/11 : RUN mv /etc/yum.repos.d/* /media/
 ---> Using cache
 ---> d9b0c52c963e
Step 4/11 : COPY ftp.repo /etc/yum.repos.d/ftp.repo
 ---> Using cache
 ---> b2e452f9c127
Step 5/11 : RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
 ---> Using cache
 ---> 579ac69feb0f
Step 6/11 : ADD kafka_2.11-1.1.1.tgz /opt/
 ---> 75c14a00d6dd
Step 7/11 : RUN sed -i 's/^zookeeper\.connect\=localhost\:2181/zookeeper\.connect\=zk1.mall\:2181/g' /opt/kafka_2.11-1.1.1/config/server.properties
 ---> Running in 1b618412a342
Removing intermediate container 1b618412a342
 ---> becbb5ce8399
Step 8/11 : RUN echo "/opt/kafka_2.11-1.1.1/bin/kafka-server-start.sh /opt/kafka_2.11-1.1.1/config/server.properties" >> /kastart.sh
 ---> Running in 2019d630ceab
Removing intermediate container 2019d630ceab
 ---> 1d773960c2f8
Step 9/11 : RUN chmod +x /kastart.sh
 ---> Running in d0d0ebe3775a
Removing intermediate container d0d0ebe3775a
 ---> 93df8c7f36b3
Step 10/11 : EXPOSE 9092
 ---> Running in 8e2bcc02397b
Removing intermediate container 8e2bcc02397b
 ---> 9979ae6f6c16
Step 11/11 : ENTRYPOINT ["sh","/kastart.sh"]
 ---> Running in 7484e1407ad2
Removing intermediate container 7484e1407ad2
 ---> e169f70b601f
Successfully built e169f70b601f
Successfully tagged gpmall-kafka:v1.0

# 查看镜像列表

[root@master kafka]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
gpmall-mysql        v1.0                ab8fd1b59b4c        39 hours ago        837MB
gpmall-kafka        v1.0                027dbb940c1d        41 hours ago        541MB
gpmall-zookeeper    v1.0                c16dce732933        2 days ago          539MB
gpmall-redis        v1.0                d7a02a9a7498        2 days ago          243MB
centos              centos7.5.1804      cf49811e3cdb        2 years ago         200MB


编写 Nginx 服务的 Dockerfile 文件,并构建镜像

# 切换至 nginx 目录(所需文件准备):

  • 拷贝 ftp.repo 源至 nginx 目录下;
  • 切换目录至 kafka 目录
  • 将前端文件拷贝至 nginx 目录
  • 将后台 jar 包拷贝至 nginx 目录下,我们创建 jar/ 目录下(因为四个文件是分散开来的,如果一个一个拷贝有点浪费时间,所有我们一次性拷贝以 .jar 后缀结尾的文件,这样就不用敲四次命令了)
  • 编写 nginx 配置文件 default.conf(和之前文章配置差不多,写 docker-compose.yaml 文件,会解释为什么要写 nginx.mall 为地址就能连接上了)
[root@master kafka]# cp -rvf ftp.repo ../nginx/
‘ftp.repo’ ->../nginx/ftp.repo’
[root@master kafka]# cd ../nginx/
[root@master nginx]# cp -rvf /opt/pass/ChinaskillMall/dist/ .
[root@master nginx]# mkdir jar
[root@master nginx]# cp -rvf /opt/pass/ChinaskillMall/*.jar ./jar/
‘/opt/pass/ChinaskillMall/gpmall-shopping-0.0.1-SNAPSHOT.jar’ -> ‘./jar/gpmall-shopping-0.0.1-SNAPSHOT.jar’
‘/opt/pass/ChinaskillMall/gpmall-user-0.0.1-SNAPSHOT.jar’ -> ‘./jar/gpmall-user-0.0.1-SNAPSHOT.jar’
‘/opt/pass/ChinaskillMall/shopping-provider-0.0.1-SNAPSHOT.jar’ -> ‘./jar/shopping-provider-0.0.1-SNAPSHOT.jar’
‘/opt/pass/ChinaskillMall/user-provider-0.0.1-SNAPSHOT.jar’ -> ‘./jar/user-provider-0.0.1-SNAPSHOT.jar’
[root@master nginx]# vim default.conf
server {
    listen       80;
    server_name  localhost;

    #charset koi8-r;
    #access_log  /var/log/nginx/host.access.log  main;

    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
    }

    location /user {
        proxy_pass http://nginx.mall:8082;
    }

    location /shopping {
        proxy_pass http://nginx.mall:8081;
    }

    location /cashier {
        proxy_pass http://nginx.mall:8083;
    }


    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    #location ~ \.php$ {
    #    root           html;
    #    fastcgi_pass   127.0.0.1:9000;
    #    fastcgi_index  index.php;
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;
    #}

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #    deny  all;
    #}
}

# 编写 Dockerfile 文件。

这里和我们正常部署差不多,只不过不把 jar 包设置为后台运行而已,不过需要注意的是前三个 jar 包设置为后台运行,只需要把最后一个 jar 包拿来卡主进程防止容器退出即可,而且一定要写 sleep 这个指令(sleep指令的意思是等待多久才继续往下运行)可以发现其他的我都是设置等待 30 秒后才继续启动下一个 jar 包,因为 ScriptBoot 还是挺花费时间的,后面的 jar 包又依赖于前面的 jar 包运行,所以为了防止前一个 jar 包,还没启动,后一个 jar 包启动过早而导致服务无法正常运行,所以要设置 sleep 因为我的电脑运行有点慢,特别是第三个 jar 包,所以在运行第三个 jar 包之前我让其等待 40 秒才继续运行,防止出现服务不可用的情况(之所以要让第三个 jar 包等待四十秒之后才运行是为了避免大多数朋友们出现页面能显示一些内容,但却没有商品数据的情况,因为第三个 jar 包主要是显示商品数据的,如果有商城的界面但没有商品数据,大多数是这个 jar 包没起来,这时我们可以酌情进行调试);

在设置后台运行的 jar 包我们将其运行的输出记录至当前路径下的 runjar.log 日志中;

[root@master nginx]# vim Dockerfile
# FROM 指定源镜像
FROM centos:centos7.5.1804

# MAINTAINER 作者名称
MAINTAINER JR
         
# RUN 运行命令参数(将 yum 源中外网源移走,也可以删除,看个人习惯)
RUN mv /etc/yum.repos.d/* /media/
        
# COPY 拷贝参数(将 ftp.repo 源拷贝至容器中的 /etc/yum.repos.d/ 目录下)
COPY ftp.repo /etc/yum.repos.d/ftp.repo 
      
# RUN 运行命令参数(安装 java、nginx 环境,因为 jar 包依赖于 java 不然无法运行)
RUN yum install -y nginx java-1.8.0-openjdk java-1.8.0-openjdk-devel

# RUN 运行命令参数(删除网站根目录下的内容)
RUN rm -rvf /usr/share/nginx/html/* 

# COPY 拷贝参数(将前端网页 dist/ 目录,拷贝至容器内 /usr/share/nginx/html/ 下)
COPY dist/ /usr/share/nginx/html/

# COPY 拷贝参数(将 default.conf 源拷贝至容器中的 /etc/nginx/conf.d/default.conf 进行替换)
COPY default.conf /etc/nginx/conf.d/default.conf

# COPY 拷贝参数(将 jar/ 目录,拷贝至容器内 /root 下)
COPY jar/ /root/jar/
    
# RUN 运行命令参数(编写启动 nginx、jar 包脚本,因为懒得写太多的 RUN 参数,所以就一行写完了)
RUN echo "/usr/sbin/nginx" >> jarstart.sh \
    && echo "nohup java -jar /root/jar/shopping-provider-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh \
    && echo "sleep 30" >> /jarstart.sh \
    && echo "nohup java -jar /root/jar/user-provider-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh \
    && echo "sleep 40" >> /jarstart.sh \
    && echo "nohup java -jar /root/jar/gpmall-shopping-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh \
    && echo "sleep 30" >> /jarstart.sh \
    && echo "java -jar /root/jar/gpmall-user-0.0.1-SNAPSHOT.jar" >> /jarstart.sh \
    && chmod +x /jarstart.sh

# 暴露端口参数(将 nginx 默认端口80暴露出去)
EXPOSE 80 443 8081 8082 8083

# 运行程序参数(在启动容器时运行指定程序:启动 jar包、nginx)
ENTRYPOINT ["sh","/jarstart.sh"]

# **(可选操作)**显示 nginx 目录下的文件。

[root@master nginx]# tree -L 2
.
├── default.conf
├── dist
│   ├── index.html
│   └── static
├── Dockerfile
├── ftp.repo
└── jar
    ├── gpmall-shopping-0.0.1-SNAPSHOT.jar
    ├── gpmall-user-0.0.1-SNAPSHOT.jar
    ├── shopping-provider-0.0.1-SNAPSHOT.jar
    └── user-provider-0.0.1-SNAPSHOT.jar

3 directories, 8 files

# 通过 Dockerfile 构建镜像(docker build -t 自定义镜像名称 : 自定义镜像版本 . )最后显示 Successfully 就代表成功,否则就是出问题了。

Sending build context to Docker daemon    213MB
Step 1/12 : FROM centos:centos7.5.1804
 ---> cf49811e3cdb
Step 2/12 : MAINTAINER JR
 ---> Using cache
 ---> d8d626118d50
Step 3/12 : RUN mv /etc/yum.repos.d/* /media/
 ---> Using cache
 ---> d9b0c52c963e
Step 4/12 : COPY ftp.repo /etc/yum.repos.d/ftp.repo
 ---> Using cache
 ---> b2e452f9c127
Step 5/12 : RUN yum install -y nginx java-1.8.0-openjdk java-1.8.0-openjdk-devel
 ---> Running in 198d692a76be
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.222.b10-1.el7_7 will be installed
--> Processing Dependency: java-1.8.0-openjdk-headless(x86-64) = 1:1.8.0.222.b10-1.el7_7 for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjava.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libasound.so.2(ALSA_0.9.0rc4)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libasound.so.2(ALSA_0.9)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libXcomposite(x86-64) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: gtk2(x86-64) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: fontconfig(x86-64) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libpng15.so.15()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjpeg.so.62()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libasound.so.2()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libXi.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libXext.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.222.b10-1.el7_7 will be installed
---> Package nginx.x86_64 1:1.16.1-1.el7.ngx will be installed
--> Processing Dependency: openssl >= 1.0.2 for package: 1:nginx-1.16.1-1.el7.ngx.x86_64
--> Running transaction check
---> Package alsa-lib.x86_64 0:1.1.8-1.el7 will be installed
---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: freetype >= 2.8-7 for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: freetype for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: libfreetype.so.6()(64bit) for package: fontconfig-2.13.0-4.3.el7.x86_64
---> Package giflib.x86_64 0:4.1.6-9.el7 will be installed
--> Processing Dependency: libSM.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64
--> Processing Dependency: libICE.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64
---> Package gtk2.x86_64 0:2.24.31-1.el7 will be installed
--> Processing Dependency: pango >= 1.20.0-1 for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libtiff >= 3.6.1 for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXrandr >= 1.2.99.4-2 for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: atk >= 1.29.4-2 for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: hicolor-icon-theme for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: gtk-update-icon-cache for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libpangoft2-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libpango-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libgdk_pixbuf-2.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libcups.so.2()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libcairo.so.2()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libatk-1.0.so.0()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXrandr.so.2()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXinerama.so.1()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXfixes.so.3()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXdamage.so.1()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
--> Processing Dependency: libXcursor.so.1()(64bit) for package: gtk2-2.24.31-1.el7.x86_64
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.222.b10-1.el7_7 will be installed
--> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: copy-jdk-configs >= 3.3 for package: 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: pcsc-lite-libs(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_64
--> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_64
---> Package libX11.x86_64 0:1.6.7-2.el7 will be installed
--> Processing Dependency: libX11-common >= 1.6.7-2.el7 for package: libX11-1.6.7-2.el7.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-2.el7.x86_64
---> Package libXcomposite.x86_64 0:0.4.4-4.1.el7 will be installed
---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed
---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed
---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed
---> Package libXtst.x86_64 0:1.2.3-1.el7 will be installed
---> Package libjpeg-turbo.x86_64 0:1.2.90-5.el7 will be installed
---> Package libpng.x86_64 2:1.5.13-7.el7_2 will be installed
---> Package openssl.x86_64 1:1.0.2k-19.el7 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-19.el7 for package: 1:openssl-1.0.2k-19.el7.x86_64
--> Processing Dependency: make for package: 1:openssl-1.0.2k-19.el7.x86_64
---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installed
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Running transaction check
---> Package atk.x86_64 0:2.28.1-1.el7 will be installed
---> Package cairo.x86_64 0:1.15.12-4.el7 will be installed
--> Processing Dependency: libpixman-1.so.0()(64bit) for package: cairo-1.15.12-4.el7.x86_64
--> Processing Dependency: libGL.so.1()(64bit) for package: cairo-1.15.12-4.el7.x86_64
--> Processing Dependency: libEGL.so.1()(64bit) for package: cairo-1.15.12-4.el7.x86_64
---> Package copy-jdk-configs.noarch 0:3.3-10.el7_5 will be installed
---> Package cups-libs.x86_64 1:1.6.3-40.el7 will be installed
--> Processing Dependency: libavahi-common.so.3()(64bit) for package: 1:cups-libs-1.6.3-40.el7.x86_64
--> Processing Dependency: libavahi-client.so.3()(64bit) for package: 1:cups-libs-1.6.3-40.el7.x86_64
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
---> Package freetype.x86_64 0:2.8-14.el7 will be installed
---> Package gdk-pixbuf2.x86_64 0:2.36.12-3.el7 will be installed
--> Processing Dependency: libjasper.so.1()(64bit) for package: gdk-pixbuf2-2.36.12-3.el7.x86_64
---> Package gtk-update-icon-cache.x86_64 0:3.22.30-3.el7 will be installed
---> Package hicolor-icon-theme.noarch 0:0.12-7.el7 will be installed
---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch
--> Processing Dependency: libxslt for package: javapackages-tools-3.4.1-11.el7.noarch
---> Package libICE.x86_64 0:1.0.9-9.el7 will be installed
---> Package libSM.x86_64 0:1.2.2-2.el7 will be installed
---> Package libX11-common.noarch 0:1.6.7-2.el7 will be installed
---> Package libXcursor.x86_64 0:1.1.15-1.el7 will be installed
---> Package libXdamage.x86_64 0:1.1.4-4.1.el7 will be installed
---> Package libXfixes.x86_64 0:5.0.3-1.el7 will be installed
---> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed
---> Package libXrandr.x86_64 0:1.5.1-2.el7 will be installed
---> Package libtiff.x86_64 0:4.0.3-27.el7_3 will be installed
--> Processing Dependency: libjbig.so.2.0()(64bit) for package: libtiff-4.0.3-27.el7_3.x86_64
---> Package libxcb.x86_64 0:1.13-1.el7 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.x86_64
---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed
---> Package make.x86_64 1:3.82-23.el7 will be installed
---> Package openssl-libs.x86_64 1:1.0.2k-12.el7 will be updated
---> Package openssl-libs.x86_64 1:1.0.2k-19.el7 will be an update
---> Package pango.x86_64 0:1.42.4-4.el7_7 will be installed
--> Processing Dependency: libthai(x86-64) >= 0.1.9 for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libXft(x86-64) >= 2.0.0 for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: harfbuzz(x86-64) >= 1.4.2 for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: glib2(x86-64) >= 2.56.1 for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: fribidi(x86-64) >= 1.0 for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libthai.so.0(LIBTHAI_0.1)(64bit) for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libthai.so.0()(64bit) for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libharfbuzz.so.0()(64bit) for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libfribidi.so.0()(64bit) for package: pango-1.42.4-4.el7_7.x86_64
--> Processing Dependency: libXft.so.2()(64bit) for package: pango-1.42.4-4.el7_7.x86_64
---> Package pcsc-lite-libs.x86_64 0:1.8.8-8.el7 will be installed
---> Package ttmkfdir.x86_64 0:3.0.9-42.el7 will be installed
---> Package tzdata-java.noarch 0:2019c-1.el7 will be installed
---> Package xorg-x11-font-utils.x86_64 1:7.5-21.el7 will be installed
--> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-21.el7.x86_64
--> Running transaction check
---> Package avahi-libs.x86_64 0:0.6.31-19.el7 will be installed
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
---> Package fribidi.x86_64 0:1.0.2-1.el7 will be installed
---> Package glib2.x86_64 0:2.54.2-2.el7 will be updated
---> Package glib2.x86_64 0:2.56.1-5.el7 will be an update
---> Package harfbuzz.x86_64 0:1.7.5-2.el7 will be installed
--> Processing Dependency: libgraphite2.so.3()(64bit) for package: harfbuzz-1.7.5-2.el7.x86_64
---> Package jasper-libs.x86_64 0:1.900.1-33.el7 will be installed
---> Package jbigkit-libs.x86_64 0:2.0-11.el7 will be installed
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
---> Package libXft.x86_64 0:2.3.2-2.el7 will be installed
---> Package libfontenc.x86_64 0:1.1.3-3.el7 will be installed
---> Package libglvnd-egl.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed
--> Processing Dependency: libglvnd(x86-64) = 1:1.0.1-0.8.git5baa1e5.el7 for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64
--> Processing Dependency: mesa-libEGL(x86-64) >= 13.0.4-1 for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64
--> Processing Dependency: libGLdispatch.so.0()(64bit) for package: 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64
---> Package libglvnd-glx.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed
--> Processing Dependency: mesa-libGL(x86-64) >= 13.0.4-1 for package: 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64
---> Package libthai.x86_64 0:0.1.14-9.el7 will be installed
---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed
---> Package pixman.x86_64 0:0.34.0-1.el7 will be installed
---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch
--> Running transaction check
---> Package graphite2.x86_64 0:1.3.10-1.el7_3 will be installed
---> Package libglvnd.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed
---> Package mesa-libEGL.x86_64 0:18.3.4-5.el7 will be installed
--> Processing Dependency: mesa-libgbm = 18.3.4-5.el7 for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libxshmfence.so.1()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libwayland-server.so.0()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libwayland-client.so.0()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libglapi.so.0()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libgbm.so.1()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
--> Processing Dependency: libdrm.so.2()(64bit) for package: mesa-libEGL-18.3.4-5.el7.x86_64
---> Package mesa-libGL.x86_64 0:18.3.4-5.el7 will be installed
--> Processing Dependency: libXxf86vm.so.1()(64bit) for package: mesa-libGL-18.3.4-5.el7.x86_64
---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed
--> Running transaction check
---> Package libXxf86vm.x86_64 0:1.1.4-1.el7 will be installed
---> Package libdrm.x86_64 0:2.4.97-2.el7 will be installed
--> Processing Dependency: libpciaccess.so.0()(64bit) for package: libdrm-2.4.97-2.el7.x86_64
---> Package libwayland-client.x86_64 0:1.15.0-1.el7 will be installed
---> Package libwayland-server.x86_64 0:1.15.0-1.el7 will be installed
---> Package libxshmfence.x86_64 0:1.2-1.el7 will be installed
---> Package mesa-libgbm.x86_64 0:18.3.4-5.el7 will be installed
---> Package mesa-libglapi.x86_64 0:18.3.4-5.el7 will be installed
--> Running transaction check
---> Package libpciaccess.x86_64 0:0.14-1.el7 will be installed
--> Processing Dependency: hwdata for package: libpciaccess-0.14-1.el7.x86_64
--> Running transaction check
---> Package hwdata.x86_64 0:0.252-9.3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                      Arch    Version                     Repository
                                                                           Size
================================================================================
Installing:
 java-1.8.0-openjdk           x86_64  1:1.8.0.222.b10-1.el7_7     Gpmall  288 k
 java-1.8.0-openjdk-devel     x86_64  1:1.8.0.222.b10-1.el7_7     Gpmall  9.8 M
 nginx                        x86_64  1:1.16.1-1.el7.ngx          Gpmall  766 k
Installing for dependencies:
 alsa-lib                     x86_64  1.1.8-1.el7                 Gpmall  425 k
 atk                          x86_64  2.28.1-1.el7                Gpmall  263 k
 avahi-libs                   x86_64  0.6.31-19.el7               CentOS   61 k
 cairo                        x86_64  1.15.12-4.el7               Gpmall  741 k
 copy-jdk-configs             noarch  3.3-10.el7_5                Gpmall   21 k
 cups-libs                    x86_64  1:1.6.3-40.el7              Gpmall  358 k
 dejavu-fonts-common          noarch  2.33-6.el7                  CentOS   64 k
 dejavu-sans-fonts            noarch  2.33-6.el7                  CentOS  1.4 M
 fontconfig                   x86_64  2.13.0-4.3.el7              Gpmall  254 k
 fontpackages-filesystem      noarch  1.44-8.el7                  CentOS  9.9 k
 freetype                     x86_64  2.8-14.el7                  Gpmall  380 k
 fribidi                      x86_64  1.0.2-1.el7                 Gpmall   79 k
 gdk-pixbuf2                  x86_64  2.36.12-3.el7               Gpmall  570 k
 giflib                       x86_64  4.1.6-9.el7                 CentOS   40 k
 graphite2                    x86_64  1.3.10-1.el7_3              CentOS  115 k
 gtk-update-icon-cache        x86_64  3.22.30-3.el7               Gpmall   28 k
 gtk2                         x86_64  2.24.31-1.el7               CentOS  3.4 M
 harfbuzz                     x86_64  1.7.5-2.el7                 Gpmall  267 k
 hicolor-icon-theme           noarch  0.12-7.el7                  CentOS   42 k
 hwdata                       x86_64  0.252-9.3.el7               Gpmall  2.4 M
 jasper-libs                  x86_64  1.900.1-33.el7              Gpmall  150 k
 java-1.8.0-openjdk-headless  x86_64  1:1.8.0.222.b10-1.el7_7     Gpmall   32 M
 javapackages-tools           noarch  3.4.1-11.el7                CentOS   73 k
 jbigkit-libs                 x86_64  2.0-11.el7                  CentOS   46 k
 libICE                       x86_64  1.0.9-9.el7                 CentOS   66 k
 libSM                        x86_64  1.2.2-2.el7                 CentOS   39 k
 libX11                       x86_64  1.6.7-2.el7                 Gpmall  607 k
 libX11-common                noarch  1.6.7-2.el7                 Gpmall  164 k
 libXau                       x86_64  1.0.8-2.1.el7               CentOS   29 k
 libXcomposite                x86_64  0.4.4-4.1.el7               CentOS   22 k
 libXcursor                   x86_64  1.1.15-1.el7                Gpmall   30 k
 libXdamage                   x86_64  1.1.4-4.1.el7               CentOS   20 k
 libXext                      x86_64  1.3.3-3.el7                 CentOS   39 k
 libXfixes                    x86_64  5.0.3-1.el7                 CentOS   18 k
 libXft                       x86_64  2.3.2-2.el7                 CentOS   58 k
 libXi                        x86_64  1.7.9-1.el7                 CentOS   40 k
 libXinerama                  x86_64  1.1.3-2.1.el7               CentOS   14 k
 libXrandr                    x86_64  1.5.1-2.el7                 CentOS   27 k
 libXrender                   x86_64  0.9.10-1.el7                CentOS   26 k
 libXtst                      x86_64  1.2.3-1.el7                 CentOS   20 k
 libXxf86vm                   x86_64  1.1.4-1.el7                 CentOS   18 k
 libdrm                       x86_64  2.4.97-2.el7                Gpmall  151 k
 libfontenc                   x86_64  1.1.3-3.el7                 CentOS   31 k
 libglvnd                     x86_64  1:1.0.1-0.8.git5baa1e5.el7  Gpmall   89 k
 libglvnd-egl                 x86_64  1:1.0.1-0.8.git5baa1e5.el7  Gpmall   44 k
 libglvnd-glx                 x86_64  1:1.0.1-0.8.git5baa1e5.el7  Gpmall  125 k
 libjpeg-turbo                x86_64  1.2.90-5.el7                CentOS  134 k
 libpciaccess                 x86_64  0.14-1.el7                  CentOS   26 k
 libpng                       x86_64  2:1.5.13-7.el7_2            CentOS  213 k
 libthai                      x86_64  0.1.14-9.el7                CentOS  187 k
 libtiff                      x86_64  4.0.3-27.el7_3              CentOS  170 k
 libwayland-client            x86_64  1.15.0-1.el7                Gpmall   33 k
 libwayland-server            x86_64  1.15.0-1.el7                Gpmall   39 k
 libxcb                       x86_64  1.13-1.el7                  Gpmall  214 k
 libxshmfence                 x86_64  1.2-1.el7                   CentOS  7.2 k
 libxslt                      x86_64  1.1.28-5.el7                CentOS  242 k
 lksctp-tools                 x86_64  1.0.17-2.el7                CentOS   88 k
 make                         x86_64  1:3.82-23.el7               CentOS  420 k
 mesa-libEGL                  x86_64  18.3.4-5.el7                Gpmall  109 k
 mesa-libGL                   x86_64  18.3.4-5.el7                Gpmall  165 k
 mesa-libgbm                  x86_64  18.3.4-5.el7                Gpmall   39 k
 mesa-libglapi                x86_64  18.3.4-5.el7                Gpmall   45 k
 openssl                      x86_64  1:1.0.2k-19.el7             Gpmall  493 k
 pango                        x86_64  1.42.4-4.el7_7              Gpmall  280 k
 pcsc-lite-libs               x86_64  1.8.8-8.el7                 Gpmall   34 k
 pixman                       x86_64  0.34.0-1.el7                CentOS  248 k
 python-javapackages          noarch  3.4.1-11.el7                CentOS   31 k
 python-lxml                  x86_64  3.2.1-4.el7                 CentOS  758 k
 ttmkfdir                     x86_64  3.0.9-42.el7                CentOS   48 k
 tzdata-java                  noarch  2019c-1.el7                 Gpmall  187 k
 xorg-x11-font-utils          x86_64  1:7.5-21.el7                Gpmall  104 k
 xorg-x11-fonts-Type1         noarch  7.5-9.el7                   CentOS  521 k
Updating for dependencies:
 glib2                        x86_64  2.56.1-5.el7                Gpmall  2.5 M
 openssl-libs                 x86_64  1:1.0.2k-19.el7             Gpmall  1.2 M

Transaction Summary
================================================================================
Install  3 Packages (+72 Dependent packages)
Upgrade             (  2 Dependent packages)

Total download size: 64 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
--------------------------------------------------------------------------------
Total                                               42 MB/s |  64 MB  00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : glib2-2.56.1-5.el7.x86_64                                   1/79 
  Installing : libjpeg-turbo-1.2.90-5.el7.x86_64                           2/79 
  Installing : 2:libpng-1.5.13-7.el7_2.x86_64                              3/79 
  Installing : freetype-2.8-14.el7.x86_64                                  4/79 
  Installing : mesa-libglapi-18.3.4-5.el7.x86_64                           5/79 
  Updating   : 1:openssl-libs-1.0.2k-19.el7.x86_64                         6/79 
  Installing : libxshmfence-1.2-1.el7.x86_64                               7/79 
  Installing : libICE-1.0.9-9.el7.x86_64                                   8/79 
  Installing : libxslt-1.1.28-5.el7.x86_64                                 9/79 
  Installing : 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64                 10/79 
  Installing : fontpackages-filesystem-1.44-8.el7.noarch                  11/79 
  Installing : libwayland-server-1.15.0-1.el7.x86_64                      12/79 
  Installing : dejavu-fonts-common-2.33-6.el7.noarch                      13/79 
  Installing : dejavu-sans-fonts-2.33-6.el7.noarch                        14/79 
  Installing : fontconfig-2.13.0-4.3.el7.x86_64                           15/79 
  Installing : python-lxml-3.2.1-4.el7.x86_64                             16/79 
  Installing : python-javapackages-3.4.1-11.el7.noarch                    17/79 
  Installing : javapackages-tools-3.4.1-11.el7.noarch                     18/79 
  Installing : libSM-1.2.2-2.el7.x86_64                                   19/79 
  Installing : ttmkfdir-3.0.9-42.el7.x86_64                               20/79 
  Installing : jasper-libs-1.900.1-33.el7.x86_64                          21/79 
  Installing : atk-2.28.1-1.el7.x86_64                                    22/79 
  Installing : pixman-0.34.0-1.el7.x86_64                                 23/79 
  Installing : copy-jdk-configs-3.3-10.el7_5.noarch                       24/79 
  Installing : libfontenc-1.1.3-3.el7.x86_64                              25/79 
  Installing : 1:xorg-x11-font-utils-7.5-21.el7.x86_64                    26/79 
  Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch                      27/79 
  Installing : libthai-0.1.14-9.el7.x86_64                                28/79 
  Installing : hwdata-0.252-9.3.el7.x86_64                                29/79 
  Installing : libpciaccess-0.14-1.el7.x86_64                             30/79 
  Installing : libdrm-2.4.97-2.el7.x86_64                                 31/79 
  Installing : mesa-libgbm-18.3.4-5.el7.x86_64                            32/79 
  Installing : jbigkit-libs-2.0-11.el7.x86_64                             33/79 
  Installing : libtiff-4.0.3-27.el7_3.x86_64                              34/79 
  Installing : graphite2-1.3.10-1.el7_3.x86_64                            35/79 
  Installing : harfbuzz-1.7.5-2.el7.x86_64                                36/79 
  Installing : libXau-1.0.8-2.1.el7.x86_64                                37/79 
  Installing : libxcb-1.13-1.el7.x86_64                                   38/79 
  Installing : libwayland-client-1.15.0-1.el7.x86_64                      39/79 
  Installing : fribidi-1.0.2-1.el7.x86_64                                 40/79 
  Installing : pcsc-lite-libs-1.8.8-8.el7.x86_64                          41/79 
  Installing : 1:make-3.82-23.el7.x86_64                                  42/79 
  Installing : 1:openssl-1.0.2k-19.el7.x86_64                             43/79 
  Installing : lksctp-tools-1.0.17-2.el7.x86_64                           44/79 
  Installing : tzdata-java-2019c-1.el7.noarch                             45/79 
  Installing : libX11-common-1.6.7-2.el7.noarch                           46/79 
  Installing : libX11-1.6.7-2.el7.x86_64                                  47/79 
  Installing : libXext-1.3.3-3.el7.x86_64                                 48/79 
  Installing : libXrender-0.9.10-1.el7.x86_64                             49/79 
  Installing : libXfixes-5.0.3-1.el7.x86_64                               50/79 
  Installing : libXi-1.7.9-1.el7.x86_64                                   51/79 
  Installing : libXdamage-1.1.4-4.1.el7.x86_64                            52/79 
  Installing : gdk-pixbuf2-2.36.12-3.el7.x86_64                           53/79 
  Installing : libXcomposite-0.4.4-4.1.el7.x86_64                         54/79 
  Installing : gtk-update-icon-cache-3.22.30-3.el7.x86_64                 55/79 
  Installing : libXtst-1.2.3-1.el7.x86_64                                 56/79 
  Installing : libXcursor-1.1.15-1.el7.x86_64                             57/79 
  Installing : libXft-2.3.2-2.el7.x86_64                                  58/79 
  Installing : libXrandr-1.5.1-2.el7.x86_64                               59/79 
  Installing : libXxf86vm-1.1.4-1.el7.x86_64                              60/79 
  Installing : mesa-libGL-18.3.4-5.el7.x86_64                             61/79 
  Installing : 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64             62/79 
  Installing : libXinerama-1.1.3-2.1.el7.x86_64                           63/79 
  Installing : giflib-4.1.6-9.el7.x86_64                                  64/79 
  Installing : 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64             65/79 
  Installing : mesa-libEGL-18.3.4-5.el7.x86_64                            66/79 
  Installing : cairo-1.15.12-4.el7.x86_64                                 67/79 
  Installing : pango-1.42.4-4.el7_7.x86_64                                68/79 
  Installing : avahi-libs-0.6.31-19.el7.x86_64                            69/79 
  Installing : 1:cups-libs-1.6.3-40.el7.x86_64                            70/79 
  Installing : 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_   71/79 
  Installing : alsa-lib-1.1.8-1.el7.x86_64                                72/79 
  Installing : hicolor-icon-theme-0.12-7.el7.noarch                       73/79 
  Installing : gtk2-2.24.31-1.el7.x86_64                                  74/79 
  Installing : 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64          75/79 
  Installing : 1:java-1.8.0-openjdk-devel-1.8.0.222.b10-1.el7_7.x86_64    76/79 
  Installing : 1:nginx-1.16.1-1.el7.ngx.x86_64                            77/79 
----------------------------------------------------------------------

Thanks for using nginx!

Please find the official documentation for nginx here:
* http://nginx.org/en/docs/

Please subscribe to nginx-announce mailing list to get
the most important news about nginx:
* http://nginx.org/en/support.html

Commercial subscriptions for nginx are available on:
* http://nginx.com/products/

----------------------------------------------------------------------
  Cleanup    : 1:openssl-libs-1.0.2k-12.el7.x86_64                        78/79 
  Cleanup    : glib2-2.54.2-2.el7.x86_64                                  79/79 
  Verifying  : libXext-1.3.3-3.el7.x86_64                                  1/79 
  Verifying  : libpciaccess-0.14-1.el7.x86_64                              2/79 
  Verifying  : libXi-1.7.9-1.el7.x86_64                                    3/79 
  Verifying  : libtiff-4.0.3-27.el7_3.x86_64                               4/79 
  Verifying  : fontconfig-2.13.0-4.3.el7.x86_64                            5/79 
  Verifying  : 2:libpng-1.5.13-7.el7_2.x86_64                              6/79 
  Verifying  : giflib-4.1.6-9.el7.x86_64                                   7/79 
  Verifying  : libjpeg-turbo-1.2.90-5.el7.x86_64                           8/79 
  Verifying  : libXrender-0.9.10-1.el7.x86_64                              9/79 
  Verifying  : javapackages-tools-3.4.1-11.el7.noarch                     10/79 
  Verifying  : 1:xorg-x11-font-utils-7.5-21.el7.x86_64                    11/79 
  Verifying  : libXxf86vm-1.1.4-1.el7.x86_64                              12/79 
  Verifying  : libwayland-server-1.15.0-1.el7.x86_64                      13/79 
  Verifying  : libXcursor-1.1.15-1.el7.x86_64                             14/79 
  Verifying  : mesa-libgbm-18.3.4-5.el7.x86_64                            15/79 
  Verifying  : 1:java-1.8.0-openjdk-devel-1.8.0.222.b10-1.el7_7.x86_64    16/79 
  Verifying  : libXinerama-1.1.3-2.1.el7.x86_64                           17/79 
  Verifying  : freetype-2.8-14.el7.x86_64                                 18/79 
  Verifying  : dejavu-fonts-common-2.33-6.el7.noarch                      19/79 
  Verifying  : gtk2-2.24.31-1.el7.x86_64                                  20/79 
  Verifying  : ttmkfdir-3.0.9-42.el7.x86_64                               21/79 
  Verifying  : hicolor-icon-theme-0.12-7.el7.noarch                       22/79 
  Verifying  : alsa-lib-1.1.8-1.el7.x86_64                                23/79 
  Verifying  : 1:cups-libs-1.6.3-40.el7.x86_64                            24/79 
  Verifying  : avahi-libs-0.6.31-19.el7.x86_64                            25/79 
  Verifying  : gdk-pixbuf2-2.36.12-3.el7.x86_64                           26/79 
  Verifying  : glib2-2.56.1-5.el7.x86_64                                  27/79 
  Verifying  : pango-1.42.4-4.el7_7.x86_64                                28/79 
  Verifying  : fontpackages-filesystem-1.44-8.el7.noarch                  29/79 
  Verifying  : gtk-update-icon-cache-3.22.30-3.el7.x86_64                 30/79 
  Verifying  : python-javapackages-3.4.1-11.el7.noarch                    31/79 
  Verifying  : mesa-libGL-18.3.4-5.el7.x86_64                             32/79 
  Verifying  : 1:nginx-1.16.1-1.el7.ngx.x86_64                            33/79 
  Verifying  : libXcomposite-0.4.4-4.1.el7.x86_64                         34/79 
  Verifying  : libXtst-1.2.3-1.el7.x86_64                                 35/79 
  Verifying  : libX11-1.6.7-2.el7.x86_64                                  36/79 
  Verifying  : libX11-common-1.6.7-2.el7.noarch                           37/79 
  Verifying  : libxcb-1.13-1.el7.x86_64                                   38/79 
  Verifying  : libXft-2.3.2-2.el7.x86_64                                  39/79 
  Verifying  : libdrm-2.4.97-2.el7.x86_64                                 40/79 
  Verifying  : tzdata-java-2019c-1.el7.noarch                             41/79 
  Verifying  : lksctp-tools-1.0.17-2.el7.x86_64                           42/79 
  Verifying  : 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64                 43/79 
  Verifying  : 1:java-1.8.0-openjdk-headless-1.8.0.222.b10-1.el7_7.x86_   44/79 
  Verifying  : xorg-x11-fonts-Type1-7.5-9.el7.noarch                      45/79 
  Verifying  : harfbuzz-1.7.5-2.el7.x86_64                                46/79 
  Verifying  : libxslt-1.1.28-5.el7.x86_64                                47/79 
  Verifying  : 1:openssl-1.0.2k-19.el7.x86_64                             48/79 
  Verifying  : 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64             49/79 
  Verifying  : 1:libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64             50/79 
  Verifying  : dejavu-sans-fonts-2.33-6.el7.noarch                        51/79 
  Verifying  : libICE-1.0.9-9.el7.x86_64                                  52/79 
  Verifying  : libXrandr-1.5.1-2.el7.x86_64                               53/79 
  Verifying  : 1:make-3.82-23.el7.x86_64                                  54/79 
  Verifying  : pcsc-lite-libs-1.8.8-8.el7.x86_64                          55/79 
  Verifying  : atk-2.28.1-1.el7.x86_64                                    56/79 
  Verifying  : 1:openssl-libs-1.0.2k-19.el7.x86_64                        57/79 
  Verifying  : cairo-1.15.12-4.el7.x86_64                                 58/79 
  Verifying  : 1:java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64          59/79 
  Verifying  : fribidi-1.0.2-1.el7.x86_64                                 60/79 
  Verifying  : mesa-libglapi-18.3.4-5.el7.x86_64                          61/79 
  Verifying  : libwayland-client-1.15.0-1.el7.x86_64                      62/79 
  Verifying  : libxshmfence-1.2-1.el7.x86_64                              63/79 
  Verifying  : libXau-1.0.8-2.1.el7.x86_64                                64/79 
  Verifying  : libSM-1.2.2-2.el7.x86_64                                   65/79 
  Verifying  : jasper-libs-1.900.1-33.el7.x86_64                          66/79 
  Verifying  : graphite2-1.3.10-1.el7_3.x86_64                            67/79 
  Verifying  : jbigkit-libs-2.0-11.el7.x86_64                             68/79 
  Verifying  : hwdata-0.252-9.3.el7.x86_64                                69/79 
  Verifying  : python-lxml-3.2.1-4.el7.x86_64                             70/79 
  Verifying  : libthai-0.1.14-9.el7.x86_64                                71/79 
  Verifying  : libXdamage-1.1.4-4.1.el7.x86_64                            72/79 
  Verifying  : libXfixes-5.0.3-1.el7.x86_64                               73/79 
  Verifying  : mesa-libEGL-18.3.4-5.el7.x86_64                            74/79 
  Verifying  : libfontenc-1.1.3-3.el7.x86_64                              75/79 
  Verifying  : copy-jdk-configs-3.3-10.el7_5.noarch                       76/79 
  Verifying  : pixman-0.34.0-1.el7.x86_64                                 77/79 
  Verifying  : 1:openssl-libs-1.0.2k-12.el7.x86_64                        78/79 
  Verifying  : glib2-2.54.2-2.el7.x86_64                                  79/79 

Installed:
  java-1.8.0-openjdk.x86_64 1:1.8.0.222.b10-1.el7_7                             
  java-1.8.0-openjdk-devel.x86_64 1:1.8.0.222.b10-1.el7_7                       
  nginx.x86_64 1:1.16.1-1.el7.ngx                                               

Dependency Installed:
  alsa-lib.x86_64 0:1.1.8-1.el7                                                 
  atk.x86_64 0:2.28.1-1.el7                                                     
  avahi-libs.x86_64 0:0.6.31-19.el7                                             
  cairo.x86_64 0:1.15.12-4.el7                                                  
  copy-jdk-configs.noarch 0:3.3-10.el7_5                                        
  cups-libs.x86_64 1:1.6.3-40.el7                                               
  dejavu-fonts-common.noarch 0:2.33-6.el7                                       
  dejavu-sans-fonts.noarch 0:2.33-6.el7                                         
  fontconfig.x86_64 0:2.13.0-4.3.el7                                            
  fontpackages-filesystem.noarch 0:1.44-8.el7                                   
  freetype.x86_64 0:2.8-14.el7                                                  
  fribidi.x86_64 0:1.0.2-1.el7                                                  
  gdk-pixbuf2.x86_64 0:2.36.12-3.el7                                            
  giflib.x86_64 0:4.1.6-9.el7                                                   
  graphite2.x86_64 0:1.3.10-1.el7_3                                             
  gtk-update-icon-cache.x86_64 0:3.22.30-3.el7                                  
  gtk2.x86_64 0:2.24.31-1.el7                                                   
  harfbuzz.x86_64 0:1.7.5-2.el7                                                 
  hicolor-icon-theme.noarch 0:0.12-7.el7                                        
  hwdata.x86_64 0:0.252-9.3.el7                                                 
  jasper-libs.x86_64 0:1.900.1-33.el7                                           
  java-1.8.0-openjdk-headless.x86_64 1:1.8.0.222.b10-1.el7_7                    
  javapackages-tools.noarch 0:3.4.1-11.el7                                      
  jbigkit-libs.x86_64 0:2.0-11.el7                                              
  libICE.x86_64 0:1.0.9-9.el7                                                   
  libSM.x86_64 0:1.2.2-2.el7                                                    
  libX11.x86_64 0:1.6.7-2.el7                                                   
  libX11-common.noarch 0:1.6.7-2.el7                                            
  libXau.x86_64 0:1.0.8-2.1.el7                                                 
  libXcomposite.x86_64 0:0.4.4-4.1.el7                                          
  libXcursor.x86_64 0:1.1.15-1.el7                                              
  libXdamage.x86_64 0:1.1.4-4.1.el7                                             
  libXext.x86_64 0:1.3.3-3.el7                                                  
  libXfixes.x86_64 0:5.0.3-1.el7                                                
  libXft.x86_64 0:2.3.2-2.el7                                                   
  libXi.x86_64 0:1.7.9-1.el7                                                    
  libXinerama.x86_64 0:1.1.3-2.1.el7                                            
  libXrandr.x86_64 0:1.5.1-2.el7                                                
  libXrender.x86_64 0:0.9.10-1.el7                                              
  libXtst.x86_64 0:1.2.3-1.el7                                                  
  libXxf86vm.x86_64 0:1.1.4-1.el7                                               
  libdrm.x86_64 0:2.4.97-2.el7                                                  
  libfontenc.x86_64 0:1.1.3-3.el7                                               
  libglvnd.x86_64 1:1.0.1-0.8.git5baa1e5.el7                                    
  libglvnd-egl.x86_64 1:1.0.1-0.8.git5baa1e5.el7                                
  libglvnd-glx.x86_64 1:1.0.1-0.8.git5baa1e5.el7                                
  libjpeg-turbo.x86_64 0:1.2.90-5.el7                                           
  libpciaccess.x86_64 0:0.14-1.el7                                              
  libpng.x86_64 2:1.5.13-7.el7_2                                                
  libthai.x86_64 0:0.1.14-9.el7                                                 
  libtiff.x86_64 0:4.0.3-27.el7_3                                               
  libwayland-client.x86_64 0:1.15.0-1.el7                                       
  libwayland-server.x86_64 0:1.15.0-1.el7                                       
  libxcb.x86_64 0:1.13-1.el7                                                    
  libxshmfence.x86_64 0:1.2-1.el7                                               
  libxslt.x86_64 0:1.1.28-5.el7                                                 
  lksctp-tools.x86_64 0:1.0.17-2.el7                                            
  make.x86_64 1:3.82-23.el7                                                     
  mesa-libEGL.x86_64 0:18.3.4-5.el7                                             
  mesa-libGL.x86_64 0:18.3.4-5.el7                                              
  mesa-libgbm.x86_64 0:18.3.4-5.el7                                             
  mesa-libglapi.x86_64 0:18.3.4-5.el7                                           
  openssl.x86_64 1:1.0.2k-19.el7                                                
  pango.x86_64 0:1.42.4-4.el7_7                                                 
  pcsc-lite-libs.x86_64 0:1.8.8-8.el7                                           
  pixman.x86_64 0:0.34.0-1.el7                                                  
  python-javapackages.noarch 0:3.4.1-11.el7                                     
  python-lxml.x86_64 0:3.2.1-4.el7                                              
  ttmkfdir.x86_64 0:3.0.9-42.el7                                                
  tzdata-java.noarch 0:2019c-1.el7                                              
  xorg-x11-font-utils.x86_64 1:7.5-21.el7                                       
  xorg-x11-fonts-Type1.noarch 0:7.5-9.el7                                       

Dependency Updated:
  glib2.x86_64 0:2.56.1-5.el7        openssl-libs.x86_64 1:1.0.2k-19.el7       

Complete!
Removing intermediate container 198d692a76be
 ---> 407cd8363d1b
Step 6/12 : RUN rm -rvf /usr/share/nginx/html/*
 ---> Running in 108d847fb4e9
removed '/usr/share/nginx/html/50x.html'
removed '/usr/share/nginx/html/index.html'
Removing intermediate container 108d847fb4e9
 ---> 6f4a3ee32723
Step 7/12 : COPY dist/ /usr/share/nginx/html/
 ---> 654ccf04e4b5
Step 8/12 : COPY default.conf /etc/nginx/conf.d/default.conf
 ---> eac196a6d1b3
Step 9/12 : COPY jar/ /root/jar/
 ---> f18caeccc692
Step 10/12 : RUN echo "/usr/sbin/nginx" >> jarstart.sh     && echo "nohup java -jar /root/jar/shopping-provider-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh     && echo "sleep 30" >> /jarstart.sh     && echo "nohup java -jar /root/jar/user-provider-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh     && echo "sleep 40" >> /jarstart.sh     && echo "nohup java -jar /root/jar/gpmall-shopping-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh     && echo "sleep 30" >> /jarstart.sh     && echo "java -jar /root/jar/gpmall-user-0.0.1-SNAPSHOT.jar" >> /jarstart.sh     && chmod +x /jarstart.sh
 ---> Running in 8a8d8c204b48
Removing intermediate container 8a8d8c204b48
 ---> 6d6696933d44
Step 11/12 : EXPOSE 80 443 8081 8082 8083
 ---> Running in f8da6832bbec
Removing intermediate container f8da6832bbec
 ---> ff59a82ef8d3
Step 12/12 : ENTRYPOINT ["sh","/jarstart.sh"]
 ---> Running in 867deff611f8
Removing intermediate container 867deff611f8
 ---> 1914e22c4287
Successfully built 1914e22c4287
Successfully tagged gpmall-nginx:v1.0

# 查看镜像列表

[root@master nginx]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
gpmall-nginx        v1.0                1914e22c4287        23 minutes ago      699MB
gpmall-mysql        v1.0                ab8fd1b59b4c        41 hours ago        837MB
gpmall-kafka        v1.0                027dbb940c1d        43 hours ago        541MB
gpmall-zookeeper    v1.0                c16dce732933        2 days ago          539MB
gpmall-redis        v1.0                d7a02a9a7498        2 days ago          243MB
centos              centos7.5.1804      cf49811e3cdb        2 years ago         200MB


编写 Docker-compose.yaml 文件 🏆

# 编写 docker-compose.yaml 编排文件

  • 在我们每个服务前都会写一个域名 mysql.mall 作为给其他容器访问的地址,其他容器可以通过我们编写的这个域名进行容器之间的访问,这也就是为什么在 kafka 配置文件中写 zk1.mall 可以访问到的原因,因为我们在编写 zookeeper 容器是给其定义的域名就是 zk1.mall(至于为什么一定是 zk1.mall 就是在 jar 包解析那块的问题了);
  • container_name:指的是启动时容器的名字,这样我们启动多个容器的时候才好区分是啥容器,如果不指定名称,就会随机分配一个字符串昨晚名字;
  • image: 指定镜像(这里我用的是本地镜像列表里的镜像,也就是我们自己使用 Dockerfile 构建的镜像);
  • ports: 指端口映射(物理机端口 : 容器端口),就是我们访问容器内部服务的时候需要通过什么端口;
  • links:其他容器使用 links 可以将指定容器的 ip 记录到该容器中;(例如:links 容器 mysql.mall,再通过连接 mysql.mall:8066 可以访问数据库)也可以配合 depends_on 来标记依赖关系, 当 mysql 服务启动完成后, 才会启动使用 depends_on 参数的服务;
  • depends_on:通过depends_on告诉docker-compose当前服务启动之前先要把depends_on指定的服务启动起来才行;
[root@master nginx]# mkdir compose
[root@master nginx]# cd ../compose/
[root@master compose]# vim docker-compose.yaml 
version: "3"
services: 
  mysql.mall: 
    container_name: mysql
    image: gpmall-mysql:v1.0
    ports: 
      - "8066:8066"

  redis.mall: 
    container_name: redis
    links: 
      - mysql.mall
    depends_on: 
      - mysql.mall
    image: gpmall-redis:v1.0
    ports: 
      - "6379:6379"

  zk1.mall: 
    container_name: zookeeper
    links: 
      - mysql.mall
      - redis.mall
    image: gpmall-zookeeper:v1.0
    ports: 
      - "2181:2181"

  kafka1.mall: 
    container_name: kafka
    links: 
      - zk1.mall
      - mysql.mall
    depends_on: 
      - zk1.mall
    image: gpmall-kafka:v1.0
    ports: 
      - "9092:9092"
   
  nginx.mall: 
    container_name: nginx
    links: 
      - mysql.mall
      - redis.mall
      - zk1.mall
      - kafka1.mall
    image: gpmall-nginx:v1.0
    ports: 
      - "80:80"
      - "443:443"

# 运行 docker-compose 编排服务(docker-compose up -d 设置后台运行 docker-compose 编排服务)

# 在运行的时候,我们需要等待稍微久一点,才能访问到页面,因为我们 jar 包哪里设置 sleep 指令等待了两个 30 秒,一个 40 秒,所以要等待蛮久了,然后在访问就没问题了。

[root@master compose]# docker-compose up -d
Starting mysql ... done
Starting redis ... done
Starting zookeeper ... done
Starting kafka     ... done
Starting nginx     ... done

# 在我进行调试的时候,可以把 -d 这个参数去掉,放在前台运行,可以看到产生的日志,这样比较方便排错

# 也可以通过 docker-compose ps 去查看参与编排的容器运行情况

[root@master compose]# docker-compose ps 
  Name                 Command               State                                   Ports                                 
---------------------------------------------------------------------------------------------------------------------------
kafka       sh /kastart.sh                   Up      0.0.0.0:9092->9092/tcp                                                
mysql       /usr/bin/mysqld_safe             Up      0.0.0.0:8066->8066/tcp                                                
nginx       sh /jarstart.sh                  Up      0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp, 8081/tcp, 8082/tcp, 8083/tcp
redis       /usr/bin/redis-server /etc ...   Up      0.0.0.0:6379->6379/tcp                                                
zookeeper   sh /zkstart.sh                   Up      0.0.0.0:2181->2181/tcp         

# 进入浏览器进行访问
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-O8xxyNnh-1637664047079)(C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20211110133052853.png)]


番外(将 Nginx 与 Jar 包进行分离)🔥

我们在之前的基础上也可以将 Nginx 和 Jar 包进行分离,将他们打包成不同的镜像,nginx 镜像只提供 web 服务,Jar 包镜像提供后端服务

编写 Dockerfile 文件 🗳

修改 Nginx 服务的 Dockerfile 文件,并构建镜像

# 切换至 nginx 目录(文件改动):

  • 我们在 dockerfile 目录下创建一个 jar 目录用于存放 jar 包镜像的内容;
  • 将原来 nginx 目录下的 jar 目录移动到 dockerfile 目录下的 jar 目录下,为 jar 包镜像提供所需文件;
  • 复制一份 ftp.repo 文件至 dockerfile 目录下的 jar 目录中;
  • 修改我们原来的 Nginx 配置文件,将 nginx.mall 改成 jar.mall 用于将请求发送到指定域名的 Jar 包上(这个 jar.mall 是我在 docker-compose.yaml 中指定的 jar 包容器的访问域名);
  • 最后修改 Dockerfile 文件;
[root@master nginx]# mkdir jar
[root@master nginx]# mv jar/ ../jar/
[root@master nginx]# cp -rvf ftp.repo ../jar/
‘ftp.repo’ ->../jar/ftp.repo’
[root@master nginx]# vim default.conf
server {
    listen       80;
    server_name  localhost;

    #charset koi8-r;
    #access_log  /var/log/nginx/host.access.log  main;

    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
    }

    location /user {
        proxy_pass http://jar.mall:8082;
    }

    location /shopping {
        proxy_pass http://jar.mall:8081;
    }

    location /cashier {
        proxy_pass http://jar.mall:8083;
    }


    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    #location ~ \.php$ {
    #    root           html;
    #    fastcgi_pass   127.0.0.1:9000;
    #    fastcgi_index  index.php;
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;
    #}

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #    deny  all;
    #}
}

# 修改 Dockerfile 文件。

把与 jar 包有关的内容移除,编写一个专门启动 nginx 的脚本即可;

[root@master nginx]# vim Dockerfile
# FROM 指定源镜像
FROM centos:centos7.5.1804

# MAINTAINER 作者名称
MAINTAINER JR

# RUN 运行命令参数(将 yum 源中外网源移走,也可以删除,看个人习惯)
RUN mv /etc/yum.repos.d/* /media/

# COPY 拷贝参数(将 ftp.repo 源拷贝至容器中的 /etc/yum.repos.d/ 目录下)
COPY ftp.repo /etc/yum.repos.d/ftp.repo

# RUN 运行命令参数(安装 java、nginx 环境,因为 jar 包依赖于 java 不然无法运行)
RUN yum install -y nginx

# RUN 运行命令参数(删除网站根目录下的内容)
RUN rm -rvf /usr/share/nginx/html/*

# COPY 拷贝参数(将前端网页 dist/ 目录,拷贝至容器内 /usr/share/nginx/html/ 下)
COPY dist/ /usr/share/nginx/html/

# COPY 拷贝参数(将 default.conf 源拷贝至容器中的 /etc/nginx/conf.d/default.conf 进行替换)
COPY default.conf /etc/nginx/conf.d/default.conf

# 编写 Nginx 启动脚本,并赋予脚本执行权限
RUN echo "/usr/sbin/nginx -g 'daemon off;'" >> /run.sh \
    && chmod +x /run.sh

# 暴露端口参数(将 nginx 默认端口80暴露出去,443可以暴露也可以不暴露,因为这里默认是 http 协议,也用不上443)
EXPOSE 80 443

# 运行程序参数(在启动容器时运行启动 Nginx 服务脚本)
ENTRYPOINT ["sh","/run.sh"]

# **(可选操作)**显示 nginx 目录下的文件。

[root@master nginx]# tree -L 2 
.
├── default.conf
├── dist
│   ├── index.html
│   └── static
├── Dockerfile
└── ftp.repo

2 directories, 4 files

# 通过 Dockerfile 构建我们新编写的镜像(懒得取名了,就叫 gpmall-ngin:v1.1 吧)。

[root@master nginx]# docker build -t gpmall-nginx:v1.1 .
Sending build context to Docker daemon  11.51MB
Step 1/11 : FROM centos:centos7.5.1804
 ---> cf49811e3cdb
Step 2/11 : MAINTAINER JR
 ---> Using cache
 ---> d8d626118d50
Step 3/11 : RUN mv /etc/yum.repos.d/* /media/
 ---> Using cache
 ---> d9b0c52c963e
Step 4/11 : COPY ftp.repo /etc/yum.repos.d/ftp.repo
 ---> Using cache
 ---> b2e452f9c127
Step 5/11 : RUN yum install -y nginx
 ---> Running in 488d83417d6f
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.16.1-1.el7.ngx will be installed
--> Processing Dependency: openssl >= 1.0.2 for package: 1:nginx-1.16.1-1.el7.ngx.x86_64
--> Running transaction check
---> Package openssl.x86_64 1:1.0.2k-19.el7 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-19.el7 for package: 1:openssl-1.0.2k-19.el7.x86_64
--> Processing Dependency: make for package: 1:openssl-1.0.2k-19.el7.x86_64
--> Running transaction check
---> Package make.x86_64 1:3.82-23.el7 will be installed
---> Package openssl-libs.x86_64 1:1.0.2k-12.el7 will be updated
---> Package openssl-libs.x86_64 1:1.0.2k-19.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch         Version                     Repository    Size
================================================================================
Installing:
 nginx              x86_64       1:1.16.1-1.el7.ngx          Gpmall       766 k
Installing for dependencies:
 make               x86_64       1:3.82-23.el7               CentOS       420 k
 openssl            x86_64       1:1.0.2k-19.el7             Gpmall       493 k
Updating for dependencies:
 openssl-libs       x86_64       1:1.0.2k-19.el7             Gpmall       1.2 M

Transaction Summary
================================================================================
Install  1 Package  (+2 Dependent packages)
Upgrade             ( 1 Dependent package)

Total download size: 2.8 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
--------------------------------------------------------------------------------
Total                                               22 MB/s | 2.8 MB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 1:openssl-libs-1.0.2k-19.el7.x86_64                          1/5 
  Installing : 1:make-3.82-23.el7.x86_64                                    2/5 
  Installing : 1:openssl-1.0.2k-19.el7.x86_64                               3/5 
  Installing : 1:nginx-1.16.1-1.el7.ngx.x86_64                              4/5 
----------------------------------------------------------------------

Thanks for using nginx!

Please find the official documentation for nginx here:
* http://nginx.org/en/docs/

Please subscribe to nginx-announce mailing list to get
the most important news about nginx:
* http://nginx.org/en/support.html

Commercial subscriptions for nginx are available on:
* http://nginx.com/products/

----------------------------------------------------------------------
  Cleanup    : 1:openssl-libs-1.0.2k-12.el7.x86_64                          5/5 
  Verifying  : 1:make-3.82-23.el7.x86_64                                    1/5 
  Verifying  : 1:openssl-libs-1.0.2k-19.el7.x86_64                          2/5 
  Verifying  : 1:nginx-1.16.1-1.el7.ngx.x86_64                              3/5 
  Verifying  : 1:openssl-1.0.2k-19.el7.x86_64                               4/5 
  Verifying  : 1:openssl-libs-1.0.2k-12.el7.x86_64                          5/5 

Installed:
  nginx.x86_64 1:1.16.1-1.el7.ngx                                               

Dependency Installed:
  make.x86_64 1:3.82-23.el7            openssl.x86_64 1:1.0.2k-19.el7           

Dependency Updated:
  openssl-libs.x86_64 1:1.0.2k-19.el7                                           

Complete!
Removing intermediate container 488d83417d6f
 ---> 216e79d006bd
Step 6/11 : RUN rm -rvf /usr/share/nginx/html/*
 ---> Running in 4b90e83b81e7
removed '/usr/share/nginx/html/50x.html'
removed '/usr/share/nginx/html/index.html'
Removing intermediate container 4b90e83b81e7
 ---> d0d0fb7c068d
Step 7/11 : COPY dist/ /usr/share/nginx/html/
 ---> 00ad8973dbed
Step 8/11 : COPY default.conf /etc/nginx/conf.d/default.conf
 ---> 0bd1c03b0194
Step 9/11 : RUN echo "/usr/sbin/nginx -g 'daemon off;'" >> /run.sh     && chmod +x /run.sh
 ---> Running in 51c1fc0c8968
Removing intermediate container 51c1fc0c8968
 ---> cd651f45ea92
Step 10/11 : EXPOSE 80 443
 ---> Running in 0518c9295f17
Removing intermediate container 0518c9295f17
 ---> 53739562ab07
Step 11/11 : ENTRYPOINT ["sh","/run.sh"]
 ---> Running in 178802f48db9
Removing intermediate container 178802f48db9
 ---> bafded3e5e7b
Successfully built bafded3e5e7b
Successfully tagged gpmall-nginx:v1.1

# 查看镜像列表。

[root@master nginx]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
gpmall-nginx        v1.0                1914e22c4287        23 minutes ago      699MB
gpmall-nginx        v1.1                bafded3e5e7b        2 minutes ago       260MB
gpmall-mysql        v1.0                ab8fd1b59b4c        41 hours ago        837MB
gpmall-kafka        v1.0                027dbb940c1d        43 hours ago        541MB
gpmall-zookeeper    v1.0                c16dce732933        2 days ago          539MB
gpmall-redis        v1.0                d7a02a9a7498        2 days ago          243MB
centos              centos7.5.1804      cf49811e3cdb        2 years ago         200MB


编写 Java 后端服务的 Dockerfile 文件,并构建镜像

# 切换至 jar 目录(文件改动):

[root@master nginx]# cd ../jar/

# 编写 Dockerfile 文件。

[root@master jar]# vim Dockerfile 
# FROM 指定源镜像
FROM centos:centos7.5.1804

# MAINTAINER 作者名称
MAINTAINER JR
         
# RUN 运行命令参数(将 yum 源中外网源移走,也可以删除,看个人习惯)
RUN mv /etc/yum.repos.d/* /media/
        
# COPY 拷贝参数(将 ftp.repo 源拷贝至容器中的 /etc/yum.repos.d/ 目录下)
COPY ftp.repo /etc/yum.repos.d/ftp.repo 
      
# RUN 运行命令参数(安装 java 环境,因为 jar 包依赖于 java 不然无法运行)
RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel

# COPY 拷贝参数(将 jar/ 目录,拷贝至容器内 /root 下)
COPY jar/ /root/jar/
    
# RUN 运行命令参数(编写启动 nginx、jar 包脚本,因为懒得写太多的 RUN 参数,所以就一行写完了)
RUN echo "nohup java -jar /root/jar/shopping-provider-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh \
    && echo "sleep 30" >> /jarstart.sh \
    && echo "nohup java -jar /root/jar/user-provider-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh \
    && echo "sleep 40" >> /jarstart.sh \
    && echo "nohup java -jar /root/jar/gpmall-shopping-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh \
    && echo "sleep 30" >> /jarstart.sh \
    && echo "java -jar /root/jar/gpmall-user-0.0.1-SNAPSHOT.jar" >> /jarstart.sh \
    && chmod +x /jarstart.sh

# 暴露端口参数(将 jar 包提供服务的端口8081、8082、8083暴露出去)
EXPOSE 8081 8082 8083

# 运行程序参数(在启动容器时运行指定程序:启动 jar包、nginx)
ENTRYPOINT ["sh","/jarstart.sh"]

# **(可选操作)**显示 nginx 目录下的文件。

[root@master jar]# tree 
.
├── Dockerfile
├── ftp.repo
└── jar
    ├── gpmall-shopping-0.0.1-SNAPSHOT.jar
    ├── gpmall-user-0.0.1-SNAPSHOT.jar
    ├── shopping-provider-0.0.1-SNAPSHOT.jar
    └── user-provider-0.0.1-SNAPSHOT.jar

1 directory, 6 files

# 通过 Dockerfile 构建镜像(docker build -t 自定义镜像名称 : 自定义镜像版本 . )最后显示 Successfully 就代表成功,否则就是出问题了。

[root@master jar]# docker build -t gpmall-jar:v1.0 .
Sending build context to Docker daemon  201.5MB
Step 1/9 : FROM centos:centos7.5.1804
 ---> cf49811e3cdb
Step 2/9 : MAINTAINER JR
 ---> Using cache
 ---> d8d626118d50
Step 3/9 : RUN mv /etc/yum.repos.d/* /media/
 ---> Using cache
 ---> d9b0c52c963e
Step 4/9 : COPY ftp.repo /etc/yum.repos.d/ftp.repo
 ---> Using cache
 ---> b2e452f9c127
Step 5/9 : RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
 ---> Using cache
 ---> 579ac69feb0f
Step 6/9 : COPY jar/ /root/jar/
 ---> b898cdf9f3f2
Step 7/9 : RUN echo "nohup java -jar /root/jar/shopping-provider-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh     && echo "sleep 30" >> /jarstart.sh     && echo "nohup java -jar /root/jar/user-provider-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh     && echo "sleep 40" >> /jarstart.sh     && echo "nohup java -jar /root/jar/gpmall-shopping-0.0.1-SNAPSHOT.jar > ./runjar.log 2>&1 &" >> /jarstart.sh     && echo "sleep 30" >> /jarstart.sh     && echo "java -jar /root/jar/gpmall-user-0.0.1-SNAPSHOT.jar" >> /jarstart.sh     && chmod +x /jarstart.sh
 ---> Running in b34389be13e5
Removing intermediate container b34389be13e5
 ---> 9913c1bbfd11
Step 8/9 : EXPOSE 8081 8082 8083
 ---> Running in 853e8feb8914
Removing intermediate container 853e8feb8914
 ---> d246c9a1ad64
Step 9/9 : ENTRYPOINT ["sh","/jarstart.sh"]
 ---> Running in 0352599b2ac0
Removing intermediate container 0352599b2ac0
 ---> 896e6ae144ca
Successfully built 896e6ae144ca
Successfully tagged gpmall-jar:v1.0

# 查看镜像列表

[root@master jar]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
gpmall-nginx        v1.0                1914e22c4287        23 minutes ago      699MB
gpmall-nginx        v1.1                bafded3e5e7b        2 minutes ago       260MB
gpmall-jar          v1.0                896e6ae144ca        30 seconds ago      680MB
gpmall-mysql        v1.0                ab8fd1b59b4c        41 hours ago        837MB
gpmall-kafka        v1.0                027dbb940c1d        43 hours ago        541MB
gpmall-zookeeper    v1.0                c16dce732933        2 days ago          539MB
gpmall-redis        v1.0                d7a02a9a7498        2 days ago          243MB
centos              centos7.5.1804      cf49811e3cdb        2 years ago         200MB


修改 Docker-compose.yaml 文件 🏆

# 编写 docker-compose.yaml 编排文件

  • 修改 nginx.mall 配置的内容;
  • 新增 jar.mall 配置;
[root@master compose]# vim docker-compose.yaml 
version: "3"
services:
  mysql.mall:
    container_name: mysql
    image: gpmall-mysql:v1.0
    ports:
      - "8066:8066"

  redis.mall:
    container_name: redis
    links:
      - mysql.mall
    depends_on:
      - mysql.mall
    image: gpmall-redis:v1.0
    ports:
      - "6379:6379"

  zk1.mall:
    container_name: zookeeper
    links:
      - mysql.mall
      - redis.mall
    image: gpmall-zookeeper:v1.0
    ports:
      - "2181:2181"

  kafka1.mall:
    container_name: kafka
    links:
      - zk1.mall
      - mysql.mall
    depends_on:
      - zk1.mall
    image: gpmall-kafka:v1.0
    ports:
      - "9092:9092"

  nginx.mall:
    container_name: nginx
    links:
      - mysql.mall
      - redis.mall
      - zk1.mall
      - kafka1.mall
      - jar.mall
    image: gpmall-nginx:v1.1
    ports:
      - "80:80"
      - "443:443"

  jar.mall:
    container_name: jar
    depends_on:
      - zk1.mall
      - kafka1.mall
      - mysql.mall
      - redis.mall
    links:
      - mysql.mall
      - redis.mall
      - zk1.mall
      - kafka1.mall
    image: gpmall-jar:v1.0
    ports:
      - "8081:8081"
      - "8082:8082"
      - "8083:8083"

# 运行 docker-compose 编排服务(docker-compose up -d 设置后台运行 docker-compose 编排服务)

# 在运行的时候,我们需要等待稍微久一点,才能访问到页面,因为我们 jar 包哪里设置 sleep 指令等待了两个 30 秒,一个 40 秒,所以要等待蛮久了,然后在访问就没问题了。

[root@master compose]# docker-compose up -d
Creating network "compose_default" with the default driver
Creating mysql ... done
Creating redis ... done
Creating zookeeper ... done
Creating kafka     ... done
Creating jar       ... done
Creating nginx     ... done

# 在我进行调试的时候,可以把 -d 这个参数去掉,放在前台运行,可以看到产生的日志,这样比较方便排错

# 也可以通过 docker-compose ps 去查看参与编排的容器运行情况

[root@master compose]# docker-compose ps 
  Name                 Command               State                    Ports                  
---------------------------------------------------------------------------------------------
jar         sh /jarstart.sh                  Up      0.0.0.0:8081->8081/tcp,                 
                                                     0.0.0.0:8082->8082/tcp,                 
                                                     0.0.0.0:8083->8083/tcp                  
kafka       sh /kastart.sh                   Up      0.0.0.0:9092->9092/tcp                  
mysql       /usr/bin/mysqld_safe             Up      0.0.0.0:8066->8066/tcp                  
nginx       sh /run.sh                       Up      0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
redis       /usr/bin/redis-server /etc ...   Up      0.0.0.0:6379->6379/tcp                  
zookeeper   sh /zkstart.sh                   Up      0.0.0.0:2181->2181/tcp      

# 进入浏览器进行访问
在这里插入图片描述

2021年11月23日内容更新番外区域(主要是将 Nginx 容器中的 Jar 包进行移除,单独编写一个镜像)

  • 12
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

没尾巴的跳跳虎

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值